From 1ffe690f563804ba1a87d3f526de32bc64e1a2cc Mon Sep 17 00:00:00 2001 From: Avra Sengupta Date: Tue, 26 Feb 2013 11:37:30 +0530 Subject: Modified validation parameters for owner-uid and owner-gid. owner-uid and owner-gid will not receive negative values anymore. Change-Id: I82741d3d01b29e448294b2ec093fb70d22a5c77e BUG: 912297 Signed-off-by: Avra Sengupta Reviewed-on: http://review.gluster.org/4581 Reviewed-by: Amar Tumballi Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/storage/posix/src/posix.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/storage/posix') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 1a7a2c751..44aeca356 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -4541,11 +4541,15 @@ struct volume_options options[] = { { .key = {"brick-uid"}, .type = GF_OPTION_TYPE_INT, + .min = 0, + .validate = GF_OPT_VALIDATE_MIN, .description = "Support for setting uid of brick's owner" }, { .key = {"brick-gid"}, .type = GF_OPTION_TYPE_INT, + .min = 0, + .validate = GF_OPT_VALIDATE_MIN, .description = "Support for setting gid of brick's owner" }, { .key = {NULL} } -- cgit