Re: Naming of subvolumes

2012-10-27 Thread Chris Murphy
On Oct 26, 2012, at 7:58 PM, cwillu cwi...@cwillu.com wrote: I'd argue that everything should be absolute references to subvolumes (/@home, /@, etc), and neither set-default nor subvolume id's should be touched. grub's core.img prefix is relative to the current default subvolume. I'm

Re: Naming of subvolumes

2012-10-26 Thread Richard Hughes
On 26 October 2012 06:24, Chris Murphy li...@colorremedies.com wrote: What's the read-only snapshot of and used for? /root and /boot And if you're going to apply the upgrade to the snapshot, or to the top level file system? That's a very good question. I was going to apply the upgrade to

Re: Naming of subvolumes

2012-10-26 Thread Chris Murphy
On Oct 26, 2012, at 2:27 AM, Richard Hughes hughsi...@gmail.com wrote: And if you're going to apply the upgrade to the snapshot, or to the top level file system? That's a very good question. I was going to apply the upgrade to the top level file system, and then roll-back to the old

Re: Naming of subvolumes

2012-10-26 Thread cwillu
On Fri, Oct 26, 2012 at 9:54 AM, Chris Murphy li...@colorremedies.com wrote: On Oct 26, 2012, at 2:27 AM, Richard Hughes hughsi...@gmail.com wrote: And if you're going to apply the upgrade to the snapshot, or to the top level file system? That's a very good question. I was going to apply

Re: Naming of subvolumes

2012-10-26 Thread Fajar A. Nugraha
On Sat, Oct 27, 2012 at 8:58 AM, cwillu cwi...@cwillu.com wrote: I haven't tried btrfs send/receive for this purpose, so I can't compare. But btrfs subvolume set-default is faster than the release of my finger from the return key. And it's easy enough the user could do it themselves if they

Naming of subvolumes

2012-10-25 Thread Richard Hughes
I'm planning to use btrfs subvolume snapshot -r name in the system upgrade functionality[1] if the user is using btrfs for their root file system. We've got most of the bits in place already for Fedora 18. One think that confuses me is the convention for the naming of snapshots. Is there any

Re: Naming of subvolumes

2012-10-25 Thread Hugo Mills
On Thu, Oct 25, 2012 at 01:30:20PM +0100, Richard Hughes wrote: I'm planning to use btrfs subvolume snapshot -r name in the system upgrade functionality[1] if the user is using btrfs for their root file system. We've got most of the bits in place already for Fedora 18. One think that

Re: Naming of subvolumes

2012-10-25 Thread Richard Hughes
On Thu, 2012-10-25 at 14:28 +0100, Hugo Mills wrote: How about user xattrs? IIRC, that's the user.* namespace. Yes, but we still need some kind of metadata standard. For instance, I might want to put a list of packages that were changed in the metadata so that admins know why the snapshot was

Re: Naming of subvolumes

2012-10-25 Thread Richard Hughes
On Thu, 2012-10-25 at 16:09 +0100, Leonidas Spyropoulos wrote: On another note. How would you implement that logic (make a snapshot before upgrade) without the lib? Would you wrap package manager into a wrapper or patch package manager to call snapshot and the upgrade. In both cases you will

Re: Naming of subvolumes

2012-10-25 Thread Calvin Walton
On Thu, 2012-10-25 at 16:16 +0100, Richard Hughes wrote: On Thu, 2012-10-25 at 16:09 +0100, Leonidas Spyropoulos wrote: On another note. How would you implement that logic (make a snapshot before upgrade) without the lib? Would you wrap package manager into a wrapper or patch package

Re: Naming of subvolumes

2012-10-25 Thread Chris Murphy
On Oct 25, 2012, at 6:30 AM, Richard Hughes hughsi...@gmail.com wrote: I'm planning to use btrfs subvolume snapshot -r name in the system upgrade functionality[1] if the user is using btrfs for their root file system. We've got most of the bits in place already for Fedora 18. What's the