Whamcloud - gitweb
LU-15451 sec: read-only nodemap flag
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 14 Jan 2022 09:16:31 +0000 (10:16 +0100)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 1 Jul 2022 04:06:36 +0000 (04:06 +0000)
commit33f0051f48c613e0d0837e44eba0d3c6e996f15c
tree145a4e0f5a514b6afc79ce43f53f9eeac24e3d29
parentf51abf4f77c5f0d7198724dad999361235860c1b
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.

Lustre-change: https://review.whamcloud.com/46149
Lustre-commit: TBD (a8cbf96538dbee8104180f63af037cbc5c9e08e9)

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
Reviewed-on: https://review.whamcloud.com/47816
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
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