3 ms·
I wish something like this were built into kernel filesystem driver. All deletions automatically go to this specific place in the filesystem.
by fxfan 8y ago
I wish something like this were built into kernel filesystem driver. All deletions automatically go to this specific place in the filesystem.
- majewsky 8y agoThis would be fun as an experiment to see how quickly it fills up the drive, but probably utterly useless in production. A lot of stuff is creating and deleting files all the time, e.g. logrotate.
- lixtra 8y agoIt could be fifo and you would still be able to undo damage for some time.
- devnonymous 8y ago...and then how do you delete it from that specific place when you are sure you want it gone? A new syscall? In seriousness tho, if you're ever wondering why such and such thing is not builtin into the kernel read up on separation of policy and mechanism eg: https://en.m.wikipedia.org/wiki/Separation_of_mechanism_and_policy https://en.m.wikipedia.org/wiki/Separation_of_mechanism_and_...
- JohnFen 8y agoI would hate that behavior, so if it's brought into Linux at the driver level (which I think is an inappropriate place for it -- the shell is the right place), it should be optional.