Linux directories do not shrink automatically
Hi all,
this is what i have read in a book Because Linux directories do not shrink automatically, removing a file from a directory does not shrink the directory, even though it frees up space on the disk.remove unused space and make a directory smaller, you must copy or move all the files to a new directory and remove the original directory. how valid is this claim ? |
I think this depends on the file system in use. Some file systems cannot be shrunk and others can. Search wikipedia for "file systems" for an exhaustive listing :-)
Thanks Dave |
That's just in relation to the inodes the directory is using which is going to be an insignificant portion of your total disk space and since directories by default take up about 4K you can put quite a few files into a directory before you even see a size change on the directory. For the majority of the users out there this is a non-issue.
|
All times are GMT -5. The time now is 03:44 AM. |