diff options
author | Krishnan Parthasarathi <kparthas@redhat.com> | 2012-09-02 15:22:34 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-09-14 01:29:27 -0700 |
commit | 2635c4a68d82be731461bb3c31188e5dd0093e7d (patch) | |
tree | 0f5c7fdc944d0c858c5b883e882a897e139ad727 /xlators/mgmt | |
parent | 80ef34fea4a8850b6f34dc59dcdfaef989d7b9e5 (diff) |
storage/posix: Option to set brick(of a volume)'s root dir's uid/gid
CLI
---
gluster volume set VOLNAME owner-uid uid
gluster volume set VOLNAME owner-gid gid
where uid,gid are the owner's user id and group id respectively that
would be set on the root of all brick (backend) fs.
TODO: uid/gid should not be -1. Today we don't validate that in CLI.
Change-Id: Ib6a2fb5e404691c5fe105a89faaeff3e1ab72e91
BUG: 853842
Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-on: http://review.gluster.org/3939
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index 81f5ddaf678..c10c8e4104c 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -228,8 +228,10 @@ static struct volopt_map_entry glusterd_volopt_map[] = { {"features.lock-heal", "protocol/server", "lk-heal", NULL, DOC, 0}, {"features.grace-timeout", "protocol/client", "grace-timeout", NULL, NO_DOC, 0}, {"features.grace-timeout", "protocol/server", "grace-timeout", NULL, DOC, 0}, - {"feature.read-only", "features/read-only", "!read-only", "off", DOC, 0}, + {"features.read-only", "features/read-only", "!read-only", "off", DOC, 0}, {"storage.linux-aio", "storage/posix", NULL, NULL, DOC, 0}, + {"storage.owner-uid", "storage/posix", "brick-uid", NULL, DOC, 0}, + {"storage.owner-gid", "storage/posix", "brick-gid", NULL, DOC, 0}, {NULL, } }; |