Am Donnerstag, 14. März 2013 schrieb Harald Glatt: > That's because the test shouldn't be in your root in the first place. > The common way of thinking now is to create a btrfs volume with a > structure for holding subvolumes inside of which your system root is a > member. You then mount the system root via -o subvol= and will only > see it and nothing else. If you want access to the "control" structure > you mount that without -o subvol. If you want to mount another > subvolume (even in place of your root) you mount that with -o subvol > to whereever you want. > > Examples: > real btrfs root: > /root/default > /root/snap1 > /root/snap2 > /home/default > /home/snap1 > > The system root mounts /root/default on boot via -o > subvol=root/default as well as the /home/default subvolume for /home. > > Then if you want to make a snapshot you mount btrfs to something like > /mnt/ctrl and do 'btrfs sub snap / /mnt/ctrl/root/snap3' and umount > /mnt/ctrl again. I use it that way, but I use btrfs subvolume set-default NUMBER /mount/path in order to not have to put the subvolid option into fstab. Thanks, -- Martin 'Helios' Steigerwald - http://www.Lichtvoll.de GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
