Am 2008-05-23 09:35:51, schrieb Mike Bird: > I'm pretty sure that du figures out the number of blocks used from > the file size (although maybe not the indirect blocks): > > $ mkdir foo > $ du foo > 4 foo > $ echo small >foo/bar > $ du foo > 8 foo > $
And do not forget that even the directory "foo" can have more then 4 kB since it holds the directory file table... There was a thread on LKM where if you have BLOCKSIZE of 1 kByte you can have up to 128.000 Files in the directory 2 kByte "" 8.000.000 Files " 4 kByte "" 829.000.000 Files " and since the directory infos must be stored anywhere... Oh, in my ~/Maildir/ I have some Mailfolder which have more then 180 kB and are nice shown in "Midnight Commander" Thanks, Greetings and nice Day Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##################### Debian GNU/Linux Consultant ##################### Michelle Konzack Apt. 917 ICQ #328449886 +49/177/9351947 50, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
signature.pgp
Description: Digital signature