News for hackers. Stuff that matters.
Re:Disks lie. And the controllers that run them are partners... by hurryer on Friday November 17, 2023 @04:14AM (#38301221)
Windows Vista introduced in 2006 a transactional file system API for user applications.

It was recently deprecated because almost nobody uses it.

https://learn.microsoft.com/en-us/windows/win32/fileio/trans...

Re:Disks lie. And the controllers that run them are partners... by josephg on Friday November 17, 2023 @06:25AM (#38302042)
I wonder why it wasn't used. Any insights? IMO they should have just made the regular write calls atomic across the OS and have applications opt out if they want.
Re:Disks lie. And the controllers that run them are partners... by crabbone on Friday November 17, 2023 @07:34AM (#38302630)
My guess would be that nobody seriously considers Windows servers for enterprise storage. I've worked for several storage companies and Windows support in that world is something that people usually want to overlook, or to provide a bare minimum of. I.e. think about companies like Dell EMC (their storage division) or Infinidat etc... it's mostly Linux with rarely some BSD in the mix.

Non-atomic stuff is simpler on the implementation. Even if the behavior is worse for the user, it's easier to write, and you have fewer requirements to satisfy. So, not having a real pressure from the customers, it's just easier not to do this.

Re:Disks lie. And the controllers that run them are partners... by hurryer on Friday November 17, 2023 @10:58AM (#38305323)
They mention in the docs it was somewhat complicated to use.

Very few apps need more than the ability to atomically swap a file.

And for the complicated multi write cases, a lot of software just use sqlite which deals with it.

Re:Disks lie. And the controllers that run them are partners... by josephg on Friday November 17, 2023 @06:25AM (#38302046)
I wonder why it wasn't used. Any insights?