Title: This is inspired by [1].<p>Quite frankly, I don&#x27;t know why filesystems <i>don&#x27;t</i> provide these things.<p>I have read that Windows has a transactional API, but they&#x27;ve actually deprecated it! [2] They say it&#x27;s because few programs use it.<p>I mean, sure, that might be true, but I bet it&#x27;s <i>really</i> important for those programs that <i>do</i> use it.<p>Bonus question: why does Windows hide its equivalent of `openat()` in the NT API? [3] Rust code seems to claim its fundamental to the NT kernel [4], so why is it not exposed?<p>[1]: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32190032" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32190032</a><p>[2]: <a href="https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;windows&#x2F;win32&#x2F;fileio&#x2F;deprecation-of-txf" rel="nofollow">https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;windows&#x2F;win32&#x2F;fileio&#x2F;deprec...</a><p>[3]: <a href="https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;windows&#x2F;win32&#x2F;api&#x2F;winternl&#x2F;nf-winternl-ntcreatefile" rel="nofollow">https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;windows&#x2F;win32&#x2F;api&#x2F;winternl&#x2F;...</a><p>[4]: <a href="https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;blob&#x2F;1c63ec48b8cbf553d291a04957d86cfd191fcd78&#x2F;library&#x2F;std&#x2F;src&#x2F;sys&#x2F;windows&#x2F;fs.rs#L711-L715" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;blob&#x2F;1c63ec48b8cbf553d291a...</a>
Upvote: