Using snapshots would make 'don't install into /usr/local' easier

| 1 Comment
Strangely enough, I had actually thought of this before I made the post. Snapshots are a wonderful feature in zfs which allow you to take point in time images of a filesystem that are mutable and which themselves can be snapshotted.
Unfortunately, this leads an explosion of snapshots if we want to be able to arbitrarily remove any one application from the system.
Consider the following operation:
pkg(1) + pkg(2) + pkg(3)
Now remove pkg(2) without using anything other than snapshots.
snapshot before adding anything sn(0). snapshot after adding package 1 sn(1)(sn(0)). snapshot after adding package2 sn(2)(sn(0)) + sn(2)(sn(1)). snapshot after adding package3 sn(3)(sn(0)) + sn(3)(sn(2)) + sn(3)(sn(1)).
Repeat for arbitrary pkg(n).
Unless you're planning on creating a whole travelling salesmanOk, it's not quite the travelling salesman problem, but it gives you a good idea as to how much work is involved of snapshots, I think my mechanism is easier.

1 Comment

Ya, same issue with SCM ? Pulling out changes x deltss ago is painful. Your mechanism is easier.


Though I was thinking of something else, something like a seperate zfs per package and a unionFS of sorts to merge these zfs's together.

Leave a comment

About this Entry

This page contains a single entry by Pete Shanahan published on January 23, 2007 10:46 AM.

A little poem that was written onto my phone was the previous entry in this blog.

Baggy sweatshirt problem is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.