diff options
author | Subha sree Mohankumar <smohanku@redhat.com> | 2017-11-02 15:09:37 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2017-12-02 12:03:28 +0000 |
commit | 09cb795587772b60ba102f4369ab3f4501cdc01a (patch) | |
tree | 09c3c7bbd4ca9772f890780d13320d41d5e68bdd /xlators/storage/posix/src/posix.h | |
parent | 59d1cc720f52357f7a6f20bb630febc6a622c99c (diff) |
storage/posix : options to override umask
Options "create-mask" and "create-directory-mask" are added to
remove the mode bits set on a file or directory when its created.
Default value of these options is 0777.
Options "force-create-mode" and "force-create-directory" sets
the default permission for a file or directory irrespective of
the clients umask.
Default value of these options is 0000.
Command to set option:
volume set <volume name> storage.<option-name> <value>
The valid value range from 0000 to 0777.
Updates #301
Change-Id: Ia33d13f2117202ca55a056c747ccc3674eb8bae1
Signed-off-by: Subha sree Mohankumar <smohanku@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r-- | xlators/storage/posix/src/posix.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h index 8db87f1de9f..e2f1dfa2dd1 100644 --- a/xlators/storage/posix/src/posix.h +++ b/xlators/storage/posix/src/posix.h @@ -232,6 +232,13 @@ struct posix_private { /* Option to handle the cases of multiple bricks exported from same backend. Very much usable in brick-splitting feature. */ int32_t shared_brick_count; + + /*Option to set mode bit permission that will always be set on + file/directory. */ + mode_t force_create_mode; + mode_t force_directory_mode; + mode_t create_mask; + mode_t create_directory_mask; }; typedef struct { |