Whamcloud - gitweb
LU-15451 sec: retry ro mount if read-only flag set
authorSebastien Buisson <sbuisson@ddn.com>
Wed, 25 May 2022 14:53:57 +0000 (16:53 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 1 Jul 2022 04:07:15 +0000 (04:07 +0000)
commit2cbb10fba04784fbb2595c6836f356e1feeb6c09
treea612fef345a91c8928c14bbfe0c4d6d15af48dac
parent33f0051f48c613e0d0837e44eba0d3c6e996f15c
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.

Lustre-change: https://review.whamcloud.com/47490
Lustre-commit: TBD (db0765ffda943399c9c095fbf82bcab9079feadd)

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I0dedd1394eeb6804f7fdde930275f6649b935bab
Reviewed-on: https://review.whamcloud.com/47817
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
libcfs/include/libcfs/libcfs_debug.h
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