Whamcloud - gitweb
LU-15451 sec: read-only nodemap flag 49/46149/5
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 14 Jan 2022 09:16:31 +0000 (10:16 +0100)
committerOleg Drokin <green@whamcloud.com>
Mon, 11 Jul 2022 06:50:14 +0000 (06:50 +0000)
commite7ce67de92dea68707c96ef44918ebdaacd6533b
tree777454a5f226c72a86e7f3065b4f266ec9f7b122
parent8db455c77265063a10a9d08147b8fd4ed20c59c4
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
Reviewed-on: https://review.whamcloud.com/46149
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>
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