From 3a962b17ad82a7a80da804550cfdf84ec4ec82fd Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Mon, 17 Sep 2018 14:16:09 +0530 Subject: posix: Fix exporting default value for `export-statfs-size` No default value was specified for `export-statfs-size` in posix option table. Glusterd2 sets default value as `off` since the option type is `bool`. Posix treats `export-statfs-size=on` if not specified in volfile(That means default value is `on`) This patch sets default value as `on` > Change-Id: I5c6341183be9b62a78fdbc94621220f9284e1382 > updates: #302 > Signed-off-by: Aravinda VK (cherry picked from commit 07088d95e450f847722e5decbfa5da18a0dbd9de) Change-Id: Ib6b3accdb9921376c16040bd2312b99b0226a26f Fixes: bz#1636842 Signed-off-by: Aravinda VK --- xlators/storage/posix/src/posix-common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xlators/storage/posix/src/posix-common.c b/xlators/storage/posix/src/posix-common.c index 2bbf6570a97..9c9d52e3609 100644 --- a/xlators/storage/posix/src/posix-common.c +++ b/xlators/storage/posix/src/posix-common.c @@ -1105,7 +1105,9 @@ struct volume_options options[] = { .type = GF_OPTION_TYPE_PATH, .default_value = "{{brick.path}}"}, {.key = {"hostname"}, .type = GF_OPTION_TYPE_ANY}, - {.key = {"export-statfs-size"}, .type = GF_OPTION_TYPE_BOOL}, + {.key = {"export-statfs-size"}, + .type = GF_OPTION_TYPE_BOOL, + .default_value = "on"}, {.key = {"mandate-attribute"}, .type = GF_OPTION_TYPE_BOOL}, {.key = {"background-unlink"}, .type = GF_OPTION_TYPE_BOOL}, {.key = {"janitor-sleep-duration"}, -- cgit