2 ms·
I haven't done any low Unix level filesystem stuff since the System V days. My recollection is that back then directories were just files that contained name to
by tzs 5y ago
I haven't done any low Unix level filesystem stuff since the System V days. My recollection is that back then directories were just files that contained name to inode mappings. All the magic that made them directories was in how the system interpreted the data in them and in the access rules the system imposed on them.
Allocating space for a directory was the same as allocating space for any other file, and the same for shrinking a directory.
It sounds like the ext family of Linux filesystems didn't work that way, with directory storage managed in some manner completely separate from file storage. If that is the case I'm curious why.
- aidenn0 5y agoIIRC it does work that way, but deleting a file just zeros the entry for the file, so the file never shrinks