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>
This commit is contained in:
Aravinda VK 2018-09-17 14:16:09 +05:30 committed by Amar Tumballi
parent b977b44dd0
commit 07088d95e4

View File

@ -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"},