On Jun 27, 2014, at 4:08 PM, Chris Murphy <li...@colorremedies.com> wrote:

> 
> 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@f20v ~]# mount /dev/sda3 /mnt
[root@f20v ~]# btrfs subvol create /mnt/test
Create subvolume '/mnt/test'
[root@f20v ~]# umount /mnt
[root@f20v ~]# mount -o ro,subvol=test /dev/sda3 /mnt
mount: /dev/sda3 is already mounted or /mnt busy
       /dev/sda3 is already mounted on /
       /dev/sda3 is already mounted on /home
       /dev/sda3 is already mounted on /var
       /dev/sda3 is already mounted on /boot
[root@f20v ~]# uname -r
3.14.6-200.fc20.x86_64


I don't know if this feature will be backported to stable kernels. If not, then 
probably the wiki should say it's a 3.15+ feature.

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

Reply via email to