On Sat, 2008-03-29 at 13:58 +0100, Christian Kujau wrote: > Hi, > > today I accidently stumbled over a strange looking directory: > > # ls -la . > total 583524 <-------------- 570 MB! > drwxrwxr-x 2 595128320 2008-03-29 09:54 . > drwxr-xr-x 25 4096 2008-03-29 09:49 .. > -rw-r--r-- 1 420 2006-02-15 16:35 index.php > -rw-r--r-- 1 2407 2001-09-22 00:33 README > -rw-r--r-- 1 465 2007-02-15 04:07 ubar.php > -rw-r--r-- 1 111 2008-03-29 09:54 ubar.png > -rw-r--r-- 1 42 2008-03-29 09:54 ubar.txt > > The contents of the directory[0] should not exceed a few KB anyway, > and lsof(1) did not show any large, deleted, but still opened files. > But to be sure, I stopped bwbar and the webserver which might have access > this directory, even unmounted the whole partition - the directory size > would still show up as 570 MB. Copied the directory (cp -a) to another > one, the new one would show up as "total 36". > > jfs_fsck reported nothing, the directory size did not change upon > remounting. > > I've gathered a few details and put it on: > http://nerdbynature.de/bits/2.6.25-rc7/jfs/ > > Can anyone make any sense of this?
Has there been a lot of activity in this directory? The size of a jfs directory reflects the size of a table that only grows as entries are added. Deleted entries are not reused. The table is only truncated if the very last entry is removed. If you can move everything to another directory and back, or rename the new one to the old one, it will fix it. jfs_fsck could probably determine when this table is over-sized and rebuild it to be smaller. I've thought about it before, but haven't gotten around to doing anything. > Thanks, > Christian. > > [0] www.kernel.org/pub/software/web/bwbar -- David Kleikamp IBM Linux Technology Center ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Jfs-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jfs-discussion
