]> granicus.if.org Git - zfs/commit
Fix remounting snapshots read-write
authorLOLi <loli10K@users.noreply.github.com>
Thu, 17 Aug 2017 21:28:17 +0000 (23:28 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 17 Aug 2017 21:28:17 +0000 (14:28 -0700)
commit08de8c16f5d322fb594742ea78958385d8ee5b50
tree17cc99f891d9cbd3130c24484b8209682ced9002
parenta1f3a1c05fa9cb06334189813d0e0d556d479620
Fix remounting snapshots read-write

It's not enough to preserve/restore MS_RDONLY on the superblock flags
to avoid remounting a snapshot read-write: be explicit about our
intentions to the VFS layer so the readonly bit is updated correctly
in do_remount_sb().

Reviewed-by: Chunwei Chen <tuxoko@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #6510
Closes #6515
module/zfs/zfs_vfsops.c
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile.am
tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_remount.ksh [new file with mode: 0755]