From owner-freebsd-fs@FreeBSD.ORG Thu Apr 10 21:53:35 2014 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 29D1151A for ; Thu, 10 Apr 2014 21:53:35 +0000 (UTC) Received: from mail-ve0-x22e.google.com (mail-ve0-x22e.google.com [IPv6:2607:f8b0:400c:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E264618FC for ; Thu, 10 Apr 2014 21:53:34 +0000 (UTC) Received: by mail-ve0-f174.google.com with SMTP id oz11so4028954veb.33 for ; Thu, 10 Apr 2014 14:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Esr8SCPtXdPnjNP97fP/k1m9RCf7pQRKaU9Cuqtcrno=; b=L5Q6GOsCAhYaP+AvZQBAdepLmEZA2WafOLTlozrvjWjvSaGsLrMQfFPOApcnaJlFrO yUCkO7cdJ43Lt2ng4MzzekhXqZqzPl33L5D1ABIOITAGEqMBz1b8H90ui/tQ6RBBEhqb SPC1Ew5FUBY7lfllalxA5Kebk+sCkBlxFtJ8XT2rcGoHogBD82KAVuC+VsGTDvAsguPf UN5plgsm5MPfRJMo7N4A7YRhpqRAIcDRYdD+sCV05/AgZQmRLh+TMaIJN4XphxBccw// +U3+pv8ams+Hy1kuQFSaf9vch6UjnLsd2JAmZgv/+ah+Iu+CrhFZBpkCQ3LNmJZV2hGQ BQ/g== MIME-Version: 1.0 X-Received: by 10.52.120.6 with SMTP id ky6mr1636715vdb.38.1397166813987; Thu, 10 Apr 2014 14:53:33 -0700 (PDT) Received: by 10.221.67.136 with HTTP; Thu, 10 Apr 2014 14:53:33 -0700 (PDT) Date: Thu, 10 Apr 2014 14:53:33 -0700 Message-ID: Subject: Immutable files on UFS? From: Garrett Cooper To: freebsd-fs@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2014 21:53:35 -0000 Hi all, This seems like a bit more than a basic question, but I apologize if I overlooked anything trivial. Basically I have some paths that don't seem to be removable. I'm not sure what needs to be done to make the paths mutable. I'm open to any and all suggestions in trying to clear out the filesystem :). Thanks! -Garrett # uname -a FreeBSD fbsd-vm.zonarsystems.net 11.0-CURRENT FreeBSD 11.0-CURRENT #2 5dc0f18(atf): Tue Apr 8 18:39:49 PDT 2014 root@fbsd-vm.zonarsystems.net:/usr/obj/usr/src/sys/GENERIC i386 # whoami root # mount | grep /dev/ada0p2 /dev/ada0p2 on / (ufs, local, journaled soft-updates) # chflags -R 0 /usr/obj~/ # rm -Rf /usr/obj~/ rm: /usr/obj~/usr/src/tmp/usr/lib/engines: Directory not empty rm: /usr/obj~/usr/src/tmp/usr/lib: Directory not empty rm: /usr/obj~/usr/src/tmp/usr: Directory not empty rm: /usr/obj~/usr/src/tmp: Directory not empty rm: /usr/obj~/usr/src: Directory not empty rm: /usr/obj~/usr: Directory not empty rm: /usr/obj~/obj/usr/src/tmp/usr/tests/bin/pkill: Directory not empty rm: /usr/obj~/obj/usr/src/tmp/usr/tests/bin: Directory not empty rm: /usr/obj~/obj/usr/src/tmp/usr/tests: Directory not empty rm: /usr/obj~/obj/usr/src/tmp/usr: Directory not empty rm: /usr/obj~/obj/usr/src/tmp: Directory not empty rm: /usr/obj~/obj/usr/src: Directory not empty rm: /usr/obj~/obj/usr: Directory not empty rm: /usr/obj~/obj: Directory not empty rm: /usr/obj~/: Directory not empty # truss -o log rm -Rf pjdfstest_0144459825150ee4088883866736d6ed/pjdfstest_5927dfc58a61fcfd500945dc28976d89 rm: pjdfstest_0144459825150ee4088883866736d6ed/pjdfstest_5927dfc58a61fcfd500945dc28976d89: Operation not permitted # egrep 'rmdir|unlink' log unlink("pjdfstest_0144459825150ee4088883866736d6ed/pjdfstest_5927dfc58a61fcfd500945dc28976d89") ERR#1 'Operation not permitted' # truss -o log rm -Rf /usr/obj~/usr/src/tmp/usr/lib/engines/ rm: /usr/obj~/usr/src/tmp/usr/lib/engines/: Directory not empty # find /usr/obj~/usr/src/tmp/usr/lib/engines/ -mindepth 1 | wc -l 0 # egrep 'rmdir|unlink' log rmdir(0x2880b100,0x10,0x0,0xbfbfec10,0x0,0x2) ERR#66 'Directory not empty'