diff options
author | Aravinda VK <avishwan@redhat.com> | 2018-09-17 14:16:09 +0530 |
---|---|---|
committer | Aravinda VK <avishwan@redhat.com> | 2018-10-08 05:40:48 +0000 |
commit | 3a962b17ad82a7a80da804550cfdf84ec4ec82fd (patch) | |
tree | 4f95e39dd595e8637d0fd2c23cd286cdd76e930d | |
parent | a94a67efde4e5095a60f4368739192e0ad116070 (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>
(cherry picked from commit 07088d95e450f847722e5decbfa5da18a0dbd9de)
Change-Id: Ib6b3accdb9921376c16040bd2312b99b0226a26f
Fixes: bz#1636842
Signed-off-by: Aravinda VK <avishwan@redhat.com>
-rw-r--r-- | xlators/storage/posix/src/posix-common.c | 4 |
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"}, |