Whamcloud - gitweb
LU-15451 sec: read-only nodemap flag 49/46149/4
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 14 Jan 2022 09:16:31 +0000 (10:16 +0100)
committerSebastien Buisson <sbuisson@ddn.com>
Thu, 2 Jun 2022 09:14:59 +0000 (11:14 +0200)
commita8cbf96538dbee8104180f63af037cbc5c9e08e9
tree7e6f5d11b707accc2b6158d95c468f38223a1f7a
parent10a29ad7616aeaadabf6d96146f52ef348a3a6f1
LU-15451 sec: read-only nodemap flag

Add a new 'readonly_mount' property to nodemaps. When set, we return
-EROFS from server side if the client is not mounting read-only.
So the client will have to specify the read-only mount option to be
allowed to mount.

Fixes: 928714dddabb ("LU-5092 nodemap: save id maps to targets in new index file")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I9931844ae46dfd5d724f592f8dfacc4a8011c7e3
17 files changed:
lustre/doc/lctl-nodemap-modify.8
lustre/include/lustre_nodemap.h
lustre/include/uapi/linux/lustre/lustre_cfg.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/mgs/mgs_handler.c
lustre/mgs/mgs_llog.c
lustre/ptlrpc/import.c
lustre/ptlrpc/niobuf.c
lustre/ptlrpc/nodemap_handler.c
lustre/ptlrpc/nodemap_lproc.c
lustre/ptlrpc/nodemap_storage.c
lustre/ptlrpc/wiretest.c
lustre/target/tgt_handler.c
lustre/tests/sanity-sec.sh
lustre/utils/obd.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c