Is there a command to show which btrfs subvolumes are mounted on each mountpoint?
Alternatively, is there somewhere (e.g. in the /proc
or /sys
trees) where the information can be read?
The output from the df
command simply shows the filesystem's root device and /etc/mtab
(aka /proc/mounts
) doesn't contain the subvol=...
option.
subvol=...
option, either. – user1902689 Jun 25 '15 at 04:31mount -tbtrfs -osubvol=home,compress=zlib,autodefrag,recovery /dev/sdc /home
then/etc/mtab
contains a line/dev/sdc /home btrfs rw,relatime,compress=zlib,space_cache,autodefrag,recovery 0 0
. Thesubvol=...
option isn't included. What are you referring to? – StarNamer Jun 28 '15 at 15:36