Re:Non-Posix File Systems
by dmm on Tuesday September 08, 2020 @07:14PM
(#24414758)
ZFS is really well behaved. It never reorders metadata in an observable way so renames should truely be atomic. In the event of a crash you'll get the old or the new name.
[ Parent
| on HN ]
Re:Non-Posix File Systems
by fiddlerwoaroof on Wednesday September 09, 2020 @02:54AM
(#24418054)
What I’d prefer to atomicity is automatic file versioning such that a file descriptor opened at time t0 always points to the same contents, unless you refresh it. You’d also need CoW and/or writing patches rather than rewriting the whole file and a GC/compactor for cleaning up transient versions of a file.
The workflows this would be enable is that, when vim wants syntax checking, it writes a transient version of the file to the fs without updating the “HEAD” pointer and then hands a fd to the syntax checker that points to that new transient version.