3 ms·
It's interesting to me that linux doesn't natively reserve a little space to allow basic commands like directory listing and file deletion to function even with
by Saris 6y ago
It's interesting to me that linux doesn't natively reserve a little space to allow basic commands like directory listing and file deletion to function even with a full disk.
Because really the biggest problem when I've had a partition get full, is I sometimes can't even delete the offending log file.
- myself248 6y agoIt still boggles my mind that the act of deleting a file can fail because it requires space to perform the act. If y'ask me, that's a fundamental design flaw. Of course nobody asked me...
- chungy 6y agoDepends entirely on the design of the file system. In copy-on-write file systems, it's a necessity: you need to at least allocate a new metadata block that doesn't record the existence of some file... and that's assuming you don't have snapshots keeping it allocated anyway. You can run into real trouble on btrfs if you fill it, it has no reserve space to protected from this scenario. ZFS at least reserves a fraction of the total space so that deletes are allowed to work even when the pool reaches 100% capacity.
- jcims 6y agoNo real good way to send messages on HN, i recalled a convo we had a while back about phone switches and thought you might enjoy this YouTube channel - https://www.youtube.com/watch?v=ngRb6mBB9HY https://www.youtube.com/watch?v=ngRb6mBB9HY Tons of recordings from back in the day.