From owner-freebsd-bugs Fri Nov 10 23:20:12 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B693737B4CF for ; Fri, 10 Nov 2000 23:20:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id XAA89781; Fri, 10 Nov 2000 23:20:06 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Fri, 10 Nov 2000 23:20:06 -0800 (PST) Message-Id: <200011110720.XAA89781@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Danny Howard Subject: Re: bin/22761: ls locks up on directory listing Reply-To: Danny Howard Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/22761; it has been noted by GNATS. From: Danny Howard To: freebsd-gnats-submit@freebsd.org Cc: Firooz Partovi Subject: Re: bin/22761: ls locks up on directory listing Date: Fri, 10 Nov 2000 23:16:20 -0800 Additional data from Firooz: O.K. I moved all the files out of "11-10" and into another directory, "y". Then I renamed the empty "11-10" directory to "x", and renamed "y" to "11-10". Now, you can do an ls of 11-10 that contains all the files of the original 11-10, but you can't do an ls of the empty directory "x". It either has to do with the inode for x or with the contents of x as shown by the od command. Unfortunately, I cannot do an od of x, because of NFS. Below is the result of stat on x. The only notable thing (that can also be seen by an ls -l command) is the size of the directory, which has remained large after deleting all those files, but this has to do with the way directories are implemented. Most implementations do not do garbage collection on directories every time you remove files from them. By the way, this all is under ~firooz/work/feeds/incoming/sportsticker. -Firooz File name = /home/firooz/work/feeds/incoming/sportsticker/x File type = directory File mode = 00040755 Inode number = 5533051 Device id = 33540 Raw device id = 0 Number of links = 2 User ID = 570 Group ID = 101 File size in bytes = 663552 Time of last access = Fri Nov 10 20:23:24 2000 Time of last modification = Fri Nov 10 20:22:37 2000 Time of last inode change = Fri Nov 10 20:38:29 2000 Preferred I/O block size = 512 Number of 512-byte blocks = 1304 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message