2 ms·
> I'd love to replace the filesystem with an append-only log How would you solve the problem of, "I have a finite amount of storage and my drive is full and I
by mort96 4y ago
> I'd love to replace the filesystem with an append-only log
How would you solve the problem of, "I have a finite amount of storage and my drive is full and I need to delete something to make space for this new thing I want"?
- josephg 4y agoI'd make it be an append-only log + some sort of kafka style compaction. So for example you can tell it to compact all the parts of the log involving that file you've deleted. Create + Delete compacts to a no-op.
- solardev 4y agoSome sort of smart FIFO system that combines old entries and then culls them? Time Machine (apple's automated backup thing) does something similar, at a simpler level
- compsciphd 4y ago1) there are file systems that are append only logs (to an extent) - a decade ago I played around with nilf/nilfs2 2) the way finite storage is handled is that "deleted" content can be garbage collected, and you will then be able to loop around and write to those garbage collected areas. not fundamentally different than an SSD which many times has such a log file system at the hardware level.