mountinfo discrepancy, subvol vs subvolid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When mounting a subvolume by name, mountinfo shows the name of the subvolume. When mounting a subvolume using subvolid it does not. Seems like a problem when trying to determine what is mounted.


-o subvol=<name>

# cat /proc/self/mountinfo | grep vda
43 34 0:29 /home /home rw,relatime shared:29 - btrfs /dev/vda1 rw,seclabel,space_cache
44 34 0:29 /boot /boot rw,relatime shared:30 - btrfs /dev/vda1 rw,seclabel,space_cache

-o subvolid=<number>


#cat /proc/self/mountinfo
43 34 0:29 / /home rw,relatime shared:29 - btrfs /dev/vda1 rw,seclabel,space_cache
44 34 0:29 / /boot rw,relatime shared:30 - btrfs /dev/vda1 rw,seclabel,space_cache


By changing default subvolume to the ID of home subvolume, then mounting with no options:

43 34 0:29 / /home rw,relatime shared:29 - btrfs /dev/vda1 rw,seclabel,space_cache


It seems the subvolid, and changed default subvolume behaviors are problematic, trying to determine what is mounted. I'd expect in all cases this should return a full path name, or a subvolume ID. 


kernel 3.11.4-301.fc20.x86_64
btrfs-progs-0.20.rc1.20130917git194aa4a-1.fc20.x86_64

Chris Murphy--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux