summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2018-09-17 14:16:09 +0530
committerAmar Tumballi <amarts@redhat.com>2018-09-18 04:28:12 +0000
commit07088d95e450f847722e5decbfa5da18a0dbd9de (patch)
tree587008cbf1c8382ebb9fed27e215721483980d86 /xlators/storage/posix
parentb977b44dd0adfcd7a3b432844260de4b8d1c4adf (diff)
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 <avishwan@redhat.com>
Diffstat (limited to 'xlators/storage/posix')
-rw-r--r--xlators/storage/posix/src/posix-common.c4
1 files changed, 3 insertions, 1 deletions
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"},