Re:Freqfs: In-memory filesystem cache for Rust
by gpderetta on Friday October 01, 2021 @04:08PM
(#28722866)
The biggest problem is the lack of good transactional facilities.
[ Parent
| on HN ]
Re:Freqfs: In-memory filesystem cache for Rust
by the8472 on Friday October 01, 2021 @05:20PM
(#28723499)
you can lock directories, you can atomically swap directories (on linux), CoW filesystems make cloning kind of cheap. That could be used to implement transactions and commits.
Getting the consistency checks/conflict detection during the commit right would be the most difficult part. Change notifications could be used to do some of that proactively.
It's a terrible idea, but it could be done.
Re:Freqfs: In-memory filesystem cache for Rust
by wongarsu on Friday October 01, 2021 @06:50PM
(#28724244)
There is a transactional API for NTFS in Windows [1]. It allows transactional operations not just within a file but also across files or across multiple computers (to make sure something is applied to your whole fleet atomically).