mount policy for subvols if root is remount,ro

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

 



Hi,

I want to know if re-mounting the root filesystem read-only should
change subvolumes mounted as read-write to read-only as well? We do
allow mounting subvolumes RW _after_ the root filesystem is mounted RO.

 # mount /dev/vdb /mnt
 # mount -o ro,subvol=svro /dev/vdb /mnt/svro
 # mount -o rw,subvol=svrw /dev/vdb /mnt/svrw
 # mount -o remount,ro /dev/vdb /mnt
 # touch /mnt/f3
touch: cannot touch '/mnt/f3': Read-only file system

Changes subvolume to read-only as well.
 # touch /mnt/svrw/f3
touch: cannot touch '/mnt/svrw/f3': Read-only file system

However, remount of subvol as RW after remount,ro of root works:
 # mount -o remount,rw,subvol=svrw /dev/vdb /mnt/svrw
 # touch /mnt/svrw/f3

-- 
Goldwyn
--
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