Hi, On Mon, Sep 05, 2011 at 12:13:25PM +0200, Björn Kalkbrenner wrote: > Then i tried to > "mount -o subvolumeid=256 /dev/mapper/root /home" (id of home subvol) > and the content of my home is back...
this is a known limitation and a fix is pending in Josef's development tree http://git.kernel.org/?p=linux/kernel/git/josef/btrfs-work.git;a=commit;h=4fbb149dfc7454d0f233fa8e5b9167f3645c8fcc "Btrfs: fix how we mount subvol=<whatever> We've only been able to mount with subvol=<whatever> where whatever was a subvol within whatever root we had as the default. This allows us to mount -o subvol=path/to/subvol/you/want relative from the normal fs_tree root. Thanks," currently, the /home subvolume is searched inside the volume set by 'set-default'. When you change it to an alternative root snapshot, the '/home' subvolume lookup fails as you've seen. The patch changes it so that the subvolumes are always looked up to the original default root subvolume (I don't know of a better name, internal id 5 or alse selectable by subvolid=0). david > > > My questions are: > > 1. where is the "original" root from today morning before i did > set-default? Lost? > > 2. why can't i do "mount -o subvolume=home /dev/mapper/root /home" > anymore? To be more exact, i can, but why is it empty and why is it > working when i enter the subvolume id? > > 3. I am now using the snapshot /snapshots/20110902 but what is > /snapshots/20110902 now and why is it still listed? It's empty? > > 4. can i now delete the snapshots/20110902 or will that drop my current > active working root? > > 5. can i rename snapshots, e.g. the snapshots/20110902 or "home" to > "home-20110905"? > > 6. is my btrfs filesystem broken now and should i recreate the whole > thing or is it safe to use it? > > Bye > Björn > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html