Whamcloud - gitweb
LU-15451 sec: read-only nodemap flag
[fs/lustre-release.git] / lustre / include / lustre_nodemap.h
index 80f123a..d0df6af 100644 (file)
@@ -82,7 +82,8 @@ struct lu_nodemap {
                                 nmf_deny_unknown:1,
                                 nmf_allow_root_access:1,
                                 nmf_enable_audit:1,
-                                nmf_forbid_encryption:1;
+                                nmf_forbid_encryption:1,
+                                nmf_readonly_mount:1;
        /* bitmap for mapping type */
        enum nodemap_mapping_modes
                                nmf_map_mode;
@@ -156,6 +157,7 @@ int nodemap_set_squash_gid(const char *name, gid_t gid);
 int nodemap_set_squash_projid(const char *name, projid_t projid);
 int nodemap_set_audit_mode(const char *name, bool enable_audit);
 int nodemap_set_forbid_encryption(const char *name, bool forbid_encryption);
+int nodemap_set_readonly_mount(const char *name, bool readonly_mount);
 bool nodemap_can_setquota(struct lu_nodemap *nodemap, __u32 qc_type, __u32 id);
 int nodemap_add_idmap(const char *name, enum nodemap_id_type id_type,
                      const __u32 map[2]);