News for hackers. Stuff that matters.
Re:Non-Posix File Systems by LgWoodenBadger on Tuesday September 08, 2020 @06:42PM (#24414458)
One feature that I’ve wished for many times is a transactional filesystem, for metadata and the actual contents itself.
Re:Non-Posix File Systems by inopinatus on Tuesday September 08, 2020 @06:57PM (#24414601)
There are have been attempts at "phase tree" filesystems with essentially transactional write semantics for data and metadata simultaneously. Tux2 was one such nascent attempt that ended (rightly or wrongly) due to patent conflict with Netapp's WAFL [1].

The interesting thing is, I just took a look at what I believe were the patents in conflict, and they appear to have expired in 2015 [2,3]. Combining the phase tree concept with, say, Merkle trees might open up very interesting possibilities for large-scale reliable file storage.

[1] https://linux.slashdot.org/story/00/10/13/2117258/tux2-the-f...

[2] https://patents.google.com/patent/US5819292

[3] https://patents.google.com/patent/US5963962

Re:Non-Posix File Systems by skissane on Tuesday September 08, 2020 @08:02PM (#24415098)
Windows has transactional NTFS. It was never widely adopted, in part because it requires use of a whole different filesystem API (CreateFileTransacted instead of CreateFile, etc). I think, if it had been more seamless, it may have been more successful. Given it is rarely used, Microsoft has marked it as deprecated for potential removal in future Windows versions.
Re:Non-Posix File Systems by asveikau on Tuesday September 08, 2020 @10:53PM (#24416450)
Iirc it was implemented with a pretty seamless API at the undocumented ntdll layer, which let you set a current transaction on a handle then do API calls as usual.

The issue is that while NT mostly reasons about files as handles, Win32 deals primarily with the name for many operations. So they duplicated every api that took a filename.

Re:Non-Posix File Systems by skissane on Wednesday September 09, 2020 @01:18AM (#24417416)
Doesn't surprise me to learn that the NT-level API is nicer.

The NT API is in general much better thought out than the Win32 API. It is a real pity that Microsoft chose to leave the former largely undocumented and tell people to use the later instead.