Whamcloud - gitweb
LU-15451 sec: retry ro mount if read-only flag set 90/47490/2
authorSebastien Buisson <sbuisson@ddn.com>
Wed, 25 May 2022 14:53:57 +0000 (16:53 +0200)
committerSebastien Buisson <sbuisson@ddn.com>
Thu, 2 Jun 2022 09:14:59 +0000 (11:14 +0200)
commitdb0765ffda943399c9c095fbf82bcab9079feadd
treecd2c00437a85c938e3d48cf041690e28017c7676
parenta8cbf96538dbee8104180f63af037cbc5c9e08e9
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
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