On Jun 27, 2014, at 2:07 PM, Sébastien ROHAUT <sebastien.roh...@free.fr> wrote:
> Hi, > > In the wiki, it's said we can mount subvolumes with different mount options. > nosuid, nodev, rw and ro are listed, as valid generic mount options. This might require 3.15. I don't recall it working with early 3.14 kernels, but by 3.14.3 I'd moved onto testing 3.15. [root@rawhide ~]# mount /dev/sda3 /mnt [root@rawhide ~]# btrfs subvol create /mnt/test Create subvolume '/mnt/test' [root@rawhide ~]# umount /mnt [root@rawhide ~]# mount -o ro,subvol=test /dev/sda3 /mnt [root@rawhide ~]# mount | grep btrfs /dev/sda3 on / type btrfs (rw,relatime,seclabel,space_cache,autodefrag) /dev/sda3 on /home type btrfs (rw,relatime,seclabel,space_cache,autodefrag) /dev/sda3 on /var type btrfs (rw,relatime,seclabel,space_cache,autodefrag) /dev/sda3 on /boot type btrfs (rw,relatime,seclabel,space_cache,autodefrag) /dev/sda3 on /mnt type btrfs (ro,relatime,seclabel,space_cache,autodefrag) [root@rawhide ~]# cat /proc/self/mountinfo | grep btrfs 58 0 0:33 /root / rw,relatime shared:1 - btrfs /dev/sda3 rw,seclabel,space_cache,autodefrag 72 58 0:33 /home /home rw,relatime shared:29 - btrfs /dev/sda3 rw,seclabel,space_cache,autodefrag 74 58 0:33 /var /var rw,relatime shared:30 - btrfs /dev/sda3 rw,seclabel,space_cache,autodefrag 76 58 0:33 /boot /boot rw,relatime shared:31 - btrfs /dev/sda3 rw,seclabel,space_cache,autodefrag 84 58 0:33 /test /mnt ro,relatime shared:35 - btrfs /dev/sda3 rw,seclabel,space_cache,autodefrag So on my end it seems like it's working correctly with 3.15. Chris Murphy-- 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