Whamcloud - gitweb
LU-15451 sec: retry ro mount if read-only flag set 90/47490/6
authorSebastien Buisson <sbuisson@ddn.com>
Wed, 25 May 2022 14:53:57 +0000 (16:53 +0200)
committerOleg Drokin <green@whamcloud.com>
Sat, 15 Oct 2022 05:56:04 +0000 (05:56 +0000)
commit56b5b5be43d88e6041c0ee60dc85b84c375d0e0d
treedf801f1e11fc75a44074fbb84e288d1cf41d5391
parent81e3cc4a56a29d480ac421e64b45f46b6214b73a
LU-15451 sec: retry ro mount if read-only flag set

In case client mount fails with -EROFS because the read-only nodemap
flag is set and ro mount option is not specified, just retry ro mount
internally. This is to avoid the need for users to manually retry the
mount with ro option.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I0dedd1394eeb6804f7fdde930275f6649b935bab
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/47490
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/lctl-nodemap-modify.8
lustre/fld/fld_request.c
lustre/include/lu_object.h
lustre/ldlm/ldlm_lib.c
lustre/llite/llite_lib.c
lustre/lmv/lmv_obd.c
lustre/obdclass/lu_tgt_descs.c
lustre/tests/sanity-sec.sh