On Sat, Feb 04, 2012 at 08:40:51PM +0200, Nikos Voutsinas wrote:
There was a patch to include the subvolume mount option into /proc/mounts.
Did that make it into the kernel;
If not, what is the formal way to find out which subvolume is mounted;
see /proc/self/mountinfo there is 'fs root' column, for bind mounts
and btrfs subvolumes is there '/<path>' (and '/' for normal mounts).
findmnt(8) uses the path in SOURCE column, for example /dev/sda1[/subvolume].
Karel
--
Karel Zak [off-list ref]
http://karelzak.blogspot.com