From owner-freebsd-questions@FreeBSD.ORG Tue Sep 6 01:37:17 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC8EB16A420 for ; Tue, 6 Sep 2005 01:37:17 +0000 (GMT) (envelope-from mi+kde@aldan.algebra.com) Received: from mail22.sea5.speakeasy.net (mail22.sea5.speakeasy.net [69.17.117.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 817F943D49 for ; Tue, 6 Sep 2005 01:37:16 +0000 (GMT) (envelope-from mi+kde@aldan.algebra.com) Received: (qmail 1036 invoked from network); 6 Sep 2005 01:37:16 -0000 Received: from aldan.algebra.com (HELO blue.virtual-estates.net) ([216.254.65.224]) (envelope-sender ) by mail22.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 6 Sep 2005 01:37:15 -0000 Received: from blue.virtual-estates.net (blue [127.0.0.1]) by blue.virtual-estates.net (8.13.3/8.13.3) with ESMTP id j861bDQf040371 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 5 Sep 2005 21:37:13 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by blue.virtual-estates.net (8.13.4/8.13.3/Submit) id j861bAjC040365; Mon, 5 Sep 2005 21:37:10 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) X-Authentication-Warning: blue.virtual-estates.net: mi set sender to mi+kde@aldan.algebra.com using -f From: Mikhail Teterin To: Eric Anderson , Beecher Rintoul Date: Mon, 5 Sep 2005 21:37:10 -0400 User-Agent: KMail/1.8.1 References: <200509051953.22337@aldan> <431CE4F8.8000404@centtech.com> In-Reply-To: <431CE4F8.8000404@centtech.com> X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7whJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli" Cc: questions@freebsd.org, fs@freebsd.org Subject: Re: Strange case of filesystem corruption? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2005 01:37:18 -0000 On Monday 05 September 2005 08:38 pm, Eric Anderson wrote: = Mikhail Teterin wrote: = > Can this be explained by anything other than a (nasty) bug? = > = > % ls -la audio/shorten/files = > total 0 = > % rmdir audio/shorten/files = > rmdir: audio/shorten/files: Directory not empty = > = > This is on 5.4-stable from July 21 -- up ever since... Thanks! [...] = Can you show permissions on the directories audio, shorten, and files? Well, ls of the directory succeds above, so it can not be the permission problem. But here: % cd audio/shorten % ls -lds 2 drwxrwxr-x 4 mi wheel 512 Jul 21 01:13 . % ls -loas files total 0 % rmdir files rmdir: files: Directory not empty = Also - what is your securelevel set to Default. = and have you checked to see if there are processes with any open files = in those directories? I doubt there are any, and why would that affect anything anyway? Here: % mkdir /tmp/q % touch /tmp/q/meow % tail -F /tmp/q/meow & [2] 39947 % rm /tmp/q/meow % rmdir /tmp/q In other words, the directory (/tmp/q) is removable even if a process (tail) still has a deleted file (meow) in it opened. On Monday 05 September 2005 08:42 pm, Beecher Rintoul wrote: = Try rm -R audio/shorten/files Thank you, but I'm afraid, it may succeed in deleting the directory, while I try to figure out, what is happening -- the directory is empty according to ls, but not empty according to rmdir. -mi