Originally posted by Yndoendo
View Post
Announcement
Collapse
No announcement yet.
Arch Linux's Pacman 6.1 Released With Cache Server Support
Collapse
X
-
Originally posted by Nocifer View Post
No, what they're talking about is atomicity, i.e. implement a way to ensure that either the transaction happens completely or it doesn't happen at all. The thing is, writing all changes to disk in a separate location and then mv-ing them to place is also prone to the same issues, because what happens if the power loss occurs during the mv operation? Same exact thing.
That's the kind of issue that immutability and A/B partitioning have been created to solve. Write the changes to disk, ensure their integrity, then switch to using them right from where they are, and mark the old files as deprecated.
Now that I think about it, if you were implying CoW snapshots for system restore purposes, like in Btrfs, then CoW would also fit the bill.
I wonder if that is something the kernel/fs could do. Though as you wrote, it's much simpler when you need to only change one reference/pointer, having to change multiple is hard to make safe.
Comment
Comment