green@clusterfs.com
2007-Jan-12 07:59 UTC
[Lustre-devel] [Bug 11509] ls -ld . does not show correct number of subdirs (>32767)
Please don''t reply to lustre-devel. Instead, comment in Bugzilla by using the following link: https://bugzilla.lustre.org/show_bug.cgi?id=11509 That''s very strange. And I cannot reproduce too: [root@akane dir]# for i in `seq 1 45000` ; do mkdir $i ; done [root@akane dir]# ls -ld . drwxr-xr-x 45002 root root 1052672 Jan 12 16:55 . anything above 65000 should result in nlink 1.
Stefan.O.Nordlander@AstraZeneca.com
2007-Jan-14 20:52 UTC
[Lustre-devel] [Bug 11509] ls -ld . does not show correct number of subdirs (>32767)
Please don''t reply to lustre-devel. Instead, comment in Bugzilla by using the following link: https://bugzilla.lustre.org/show_bug.cgi?id=11509 Indeed. This is a RH9 box so maybe the version of "ls" is old? $ rpm -qf /bin/ls coreutils-4.5.3-28 $ cat /etc/redhat-release Red Hat Linux release 9 (Shrike) $ uname -a Linux master 2.4.21-40.ELcustom #2 SMP Wed Sep 20 12:54:40 CEST 2006 i686 i686 i386 GNU/Linux But I just reproduced it again. And indeed 65000 files returns 1 when ''ls -ld .'' $ ls | wc -l 45000 $ ls -ld . drwxr-xr-x 32767 asdf games 1044480 Jan 12 16:16 . $ ls |wc -l 66000 $ ls -ld . drwxr-xr-x 1 asdf games 1458176 Jan 12 16:29 . Takes many an hours to delete this directory I might add ;)
Stefan.O.Nordlander@AstraZeneca.com
2007-Jan-14 20:52 UTC
[Lustre-devel] [Bug 11509] ls -ld . does not show correct number of subdirs (>32767)
Please don''t reply to lustre-devel. Instead, comment in Bugzilla by using the following link: https://bugzilla.lustre.org/show_bug.cgi?id=11509 No, wait. The first post was on [root@hls677 tmp]# cat /etc/redhat-release Red Hat Enterprise Linux ES release 4 (Nahant Update 4) [root@hls677 tmp]# uname -a Linux hls677.seml.astrazeneca.net 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 athlon i386 GNU/Linux So it''s no an ''ls'' issue. I should add that the xfs filesystem I tried this on was not on the same machine. It was Gentoo Linux too.