LWN.net Logo

The case for the /usr merge

The case for the /usr merge

Posted Jan 27, 2012 19:48 UTC (Fri) by BenHutchings (subscriber, #37955)
In reply to: The case for the /usr merge by engla
Parent article: The case for the /usr merge

Yes, I noticed that too. Changes to /usr should already be easily reversible by downgrading the package. Changes to /etc and /var may not be reversible without resort to backups, and that's where the snapshot feature might be more useful.


(Log in to post comments)

The case for the /usr merge

Posted Jan 28, 2012 2:30 UTC (Sat) by russell (subscriber, #10458) [Link]

Snapshotting is never going to be an atomic operation, this is a false argument for unified /usr. What happens if a package is being installed when the snapshot takes place. e.g. parallel installation of a tarball by someone else. If you roll back you end up with something half installed.

So you have to procedurally "quiesce" the system FS to avoid race conditions. Given that, what's the difference between snapshotting one FS or 3,4,5,etc?

The only reliable way to manage the system is to use the package manager to undo the changes as it currently does. And if this is not possible, because the system won't run the package manager. Shame the sys admin who broke it for being so careless.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds