Ok, I see. Too bad. Thanks for the info!
Well, I thought it might be easier to simply change the default subvolume rather than modifying the kernel startup parameters to mount the btrfs root volume by subvolid. But even if the bug gets fixed, how can I tell what is currently mounted? It seems to me there is no option in btrfs to show the current name or ID of a mounted subvolume or snapshot. Using the example above, for instance:
# mkdir /mnt/258 /mnt/0
# mount -o subvolid=258 /dev/sda3 /mnt/258
# mount -o subvolid=0 /dev/sda3 /mnt/0
If I don't know the mount command, how can I tell what btrfs subvolume or snapshot is currently mounted. /etc/mtab does not keep track of the subvolid. The btrfs subvol list command gives me the same output on /mnt/258 as it does on /mnt/0. I could create a certain file in /mnt/258 and then search for it in /mnt/0 to find the parent directory, but is there a more elegant way to determine what is actually mounted?
I guess I can provide an answer to my last question:
+"A specific subvolume can be mounted by -o subvol=/path/to/subvol option, but currently it's not implemented to read that path directly from /proc/mounts. If the filesystem is mounted via a /etc/fstab entry, then output of mount command will show the subvol path, as it reads it from /etc/mtab."+