HomeFreeBSD

Fix remounting snapshots read-write

Description

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

Details

Provenance
LOLi <loli10K@users.noreply.github.com>Authored on Aug 17 2017, 9:28 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 17 2017, 9:28 PM
Parents
rGa1f3a1c05fa9: Use /sbin/openrc-run for openrc init scripts
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG08de8c16f5d3: Fix remounting snapshots read-write (authored by LOLi <loli10K@users.noreply.github.com>).Aug 17 2017, 9:28 PM