David Sterba wrote on 2015/12/14 18:32 +0100:
On Thu, Dec 10, 2015 at 10:34:06AM +0800, Qu Wenruo wrote:
Introduce a new mount option "nologreplay" to co-operate with "ro" mount
option to get real readonly mount, like "norecovery" in ext* and xfs.

Since the new parse_options() need to check new flags at remount time,
so add a new parameter for parse_options().

Signed-off-by: Qu Wenruo <quwen...@cn.fujitsu.com>
Reviewed-by: Chandan Rajendra <chan...@linux.vnet.ibm.com>
Tested-by: Austin S. Hemmelgarn <ahferro...@gmail.com>

I've read the discussions around the change and from the user's POV I'd
suggest to add another mount option that would be just an alias for any
mount options that would implement the 'hard-ro' semantics.

Say it's called 'nowr'. Now it would imply 'nologreplay', but may cover
more options in the future.

  mount -o ro,nowr /dev/sdx /mnt

would work when switching kernels.


That would be nice.

I'd like to forward the idea/discussion to filesystem ml, not only btrfs maillist.

Such behavior should better be coordinated between all(at least xfs and ext4 and btrfs) filesystems.

One sad example is, we can't use 'norecovery' mount option to disable log replay in btrfs, as there is 'recovery' mount option already.

So I hope we can have a unified mount option between mainline filesystems.

Thanks,
Qu


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