05.08.2016 02:32, Peter Holm пишет: > 'btrfs subvolumee show' gives no path to btrfs system root (volid=5) > when snapshot is in the folder of subvolume. > > Step to reproduce. > 1.btrfs subvolume create xyz > 2.btrfs subvolume snapshot xyz xyz/xyz > 3.btrfs subvolume snapshot <mountpoint-for-btrfs-root>/xyz
This last command is wrong - snapshot name is missing. If you mean btrfs subvolume snapshot <mountpoint-for-btrfs-root> xyz - I get "File exists" (assuming that all previous commands were with <mountpoint-for-ntrfs-root> as current directory. This is on openSUSE Tumbleweed with kernel 4.6.4-2 and btrfsprogs 4.6.1-1. If my assumption is wrong, please copy and paste exact commands used to reproduce it. > 4.btrfs subvolumme show xyz > output > ..... > Snapshot(s) > xyz > xyz > ..... > picture from my console reproducing this. Whatchout for my personal fs-layout > my mountpoint for volid=5 is - as seen in the findmount command r at > top of the photo /mnt/btrfs/sdc16-svid-5 > https://s31.postimg.org/9f0d7xb7f/is_this_a_bug.png > > If that can add anything, same thing happends when rootvolume is > mounted by path. (for the moment it is mounted by volid). > /Peter Holm > -- > 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