summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2018-01-08 09:55:37 +0530
committerPoornima G <pgurusid@redhat.com>2018-01-18 05:57:40 +0000
commitc2fa8a94342b0cfbce9393f513099b8751711eae (patch)
tree65fb466e8a330396ff87f7707dbc025e696180f7
parent80a6a2357c0c0351691c450c40de820efce7ff6f (diff)
fix features/leases: volume option fixes for GD2
Updates #302 Change-Id: I31091765b5bfd118fc5370b3515128f0e84e360f Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
-rw-r--r--xlators/features/leases/src/leases.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/features/leases/src/leases.c b/xlators/features/leases/src/leases.c
index 194d5f34aa8..d4fdbfb7ea1 100644
--- a/xlators/features/leases/src/leases.c
+++ b/xlators/features/leases/src/leases.c
@@ -1128,11 +1128,15 @@ struct volume_options options[] = {
{ .key = {"leases"},
.type = GF_OPTION_TYPE_BOOL,
.default_value = "off",
+ .op_version = {GD_OP_VERSION_3_8_0},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
.description = "When \"on\", enables leases support"
},
{ .key = {"lease-lock-recall-timeout"},
.type = GF_OPTION_TYPE_INT,
.default_value = RECALL_LEASE_LK_TIMEOUT,
+ .op_version = {GD_OP_VERSION_3_8_0},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
.description = "After 'timeout' seconds since the recall_lease"
" request has been sent to the client, the lease lock"
" will be forcefully purged by the server."