Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-16524 nodemap: add rbac property to nodemap
[fs/lustre-release.git]
/
lustre
/
utils
/
obd.c
diff --git
a/lustre/utils/obd.c
b/lustre/utils/obd.c
index
5d5ae5c
..
20794fa
100644
(file)
--- a/
lustre/utils/obd.c
+++ b/
lustre/utils/obd.c
@@
-4589,7
+4589,7
@@
int jt_nodemap_modify(int argc, char **argv)
fprintf(stderr,
"usage: nodemap_modify --name <nodemap_name> --property <property_name> --value <value>\n");
fprintf(stderr,
fprintf(stderr,
"usage: nodemap_modify --name <nodemap_name> --property <property_name> --value <value>\n");
fprintf(stderr,
- "valid properties: admin trusted map_mode squash_uid squash_gid squash_projid deny_unknown audit_mode forbid_encryption readonly_mount\n");
+ "valid properties: admin trusted map_mode squash_uid squash_gid squash_projid deny_unknown audit_mode forbid_encryption readonly_mount
rbac
\n");
return -1;
}
return -1;
}
@@
-4613,6
+4613,8
@@
int jt_nodemap_modify(int argc, char **argv)
cmd = LCFG_NODEMAP_FORBID_ENCRYPT;
} else if (strcmp("readonly_mount", param) == 0) {
cmd = LCFG_NODEMAP_READONLY_MOUNT;
cmd = LCFG_NODEMAP_FORBID_ENCRYPT;
} else if (strcmp("readonly_mount", param) == 0) {
cmd = LCFG_NODEMAP_READONLY_MOUNT;
+ } else if (strcmp("rbac", param) == 0) {
+ cmd = LCFG_NODEMAP_RBAC;
} else {
fprintf(stderr,
"error: %s: nodemap_modify invalid subcommand: %s\n",
} else {
fprintf(stderr,
"error: %s: nodemap_modify invalid subcommand: %s\n",