|
|
14f8ab |
From 78060c16f88594b3424e512a9ef0e4a8f56e88c3 Mon Sep 17 00:00:00 2001
|
|
|
14f8ab |
From: Kaushal M <kmadappa@redhat.com>
|
|
|
14f8ab |
Date: Thu, 6 Dec 2018 15:04:16 +0530
|
|
|
14f8ab |
Subject: [PATCH 02/52] glusterd: fix op-versions for RHS backwards
|
|
|
14f8ab |
compatability
|
|
|
14f8ab |
|
|
|
14f8ab |
Backport of https://code.engineering.redhat.com/gerrit/#/c/60485/
|
|
|
14f8ab |
|
|
|
14f8ab |
This change fixes the op-version of different features and checks to maintain
|
|
|
14f8ab |
backwards compatability with RHS-3.0 and before.
|
|
|
14f8ab |
|
|
|
14f8ab |
Label: DOWNSTREAM ONLY
|
|
|
14f8ab |
|
|
|
14f8ab |
Change-Id: Icb282444da179b12fbd6ed9f491514602f1a38c2
|
|
|
14f8ab |
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
14f8ab |
Reviewed-on: https://code.engineering.redhat.com/gerrit/70348
|
|
|
14f8ab |
---
|
|
|
14f8ab |
libglusterfs/src/glusterfs/globals.h | 45 +++--
|
|
|
14f8ab |
rpc/rpc-transport/socket/src/socket.c | 4 +-
|
|
|
14f8ab |
xlators/cluster/dht/src/dht-shared.c | 6 +-
|
|
|
14f8ab |
xlators/debug/io-stats/src/io-stats.c | 16 +-
|
|
|
14f8ab |
xlators/features/barrier/src/barrier.c | 4 +-
|
|
|
14f8ab |
xlators/mgmt/glusterd/src/glusterd-brick-ops.c | 8 +-
|
|
|
14f8ab |
xlators/mgmt/glusterd/src/glusterd-handler.c | 14 +-
|
|
|
14f8ab |
xlators/mgmt/glusterd/src/glusterd-op-sm.c | 16 +-
|
|
|
14f8ab |
xlators/mgmt/glusterd/src/glusterd-peer-utils.c | 8 +-
|
|
|
14f8ab |
xlators/mgmt/glusterd/src/glusterd-rebalance.c | 4 +-
|
|
|
14f8ab |
xlators/mgmt/glusterd/src/glusterd-replace-brick.c | 4 +-
|
|
|
14f8ab |
xlators/mgmt/glusterd/src/glusterd-rpc-ops.c | 6 +-
|
|
|
14f8ab |
xlators/mgmt/glusterd/src/glusterd-sm.c | 2 +-
|
|
|
14f8ab |
.../mgmt/glusterd/src/glusterd-snapshot-utils.c | 12 +-
|
|
|
14f8ab |
xlators/mgmt/glusterd/src/glusterd-snapshot.c | 4 +-
|
|
|
14f8ab |
xlators/mgmt/glusterd/src/glusterd-store.c | 27 +--
|
|
|
14f8ab |
xlators/mgmt/glusterd/src/glusterd-syncop.c | 2 +-
|
|
|
14f8ab |
xlators/mgmt/glusterd/src/glusterd-tier.c | 3 +-
|
|
|
14f8ab |
xlators/mgmt/glusterd/src/glusterd-utils.c | 8 +-
|
|
|
14f8ab |
xlators/mgmt/glusterd/src/glusterd-volume-ops.c | 12 +-
|
|
|
14f8ab |
xlators/mgmt/glusterd/src/glusterd-volume-set.c | 192 +++++++++++----------
|
|
|
14f8ab |
xlators/protocol/client/src/client.c | 4 +-
|
|
|
14f8ab |
xlators/protocol/server/src/server.c | 6 +-
|
|
|
14f8ab |
xlators/storage/posix/src/posix-common.c | 4 +-
|
|
|
14f8ab |
24 files changed, 214 insertions(+), 197 deletions(-)
|
|
|
14f8ab |
|
|
|
14f8ab |
diff --git a/libglusterfs/src/glusterfs/globals.h b/libglusterfs/src/glusterfs/globals.h
|
|
|
14f8ab |
index 8d898c3..b9da872 100644
|
|
|
14f8ab |
--- a/libglusterfs/src/glusterfs/globals.h
|
|
|
14f8ab |
+++ b/libglusterfs/src/glusterfs/globals.h
|
|
|
14f8ab |
@@ -23,23 +23,28 @@
|
|
|
14f8ab |
#define GF_AVOID_OVERWRITE "glusterfs.avoid.overwrite"
|
|
|
14f8ab |
#define GF_CLEAN_WRITE_PROTECTION "glusterfs.clean.writexattr"
|
|
|
14f8ab |
|
|
|
14f8ab |
-/* Gluster versions - OP-VERSION mapping
|
|
|
14f8ab |
+/* RHS versions - OP-VERSION mapping
|
|
|
14f8ab |
*
|
|
|
14f8ab |
- * 3.3.x - 1
|
|
|
14f8ab |
- * 3.4.x - 2
|
|
|
14f8ab |
- * 3.5.0 - 3
|
|
|
14f8ab |
- * 3.5.1 - 30501
|
|
|
14f8ab |
- * 3.6.0 - 30600
|
|
|
14f8ab |
- * 3.7.0 - 30700
|
|
|
14f8ab |
- * 3.7.1 - 30701
|
|
|
14f8ab |
- * 3.7.2 - 30702
|
|
|
14f8ab |
+ * RHS-2.0 Z - 1
|
|
|
14f8ab |
+ * RHS-2.1 Z - 2
|
|
|
14f8ab |
+ * RHS-2.1 u5 - 20105
|
|
|
14f8ab |
+ * RHS-3.0 - 30000
|
|
|
14f8ab |
+ * RHS-3.0.4 - 30004
|
|
|
14f8ab |
+ * RHGS-3.1 - 30702
|
|
|
14f8ab |
*
|
|
|
14f8ab |
- * Starting with Gluster v3.6, the op-version will be multi-digit integer values
|
|
|
14f8ab |
- * based on the Glusterfs version, instead of a simply incrementing integer
|
|
|
14f8ab |
- * value. The op-version for a given X.Y.Z release will be an integer XYZ, with
|
|
|
14f8ab |
- * Y and Z 2 digit always 2 digits wide and padded with 0 when needed. This
|
|
|
14f8ab |
- * should allow for some gaps between two Y releases for backports of features
|
|
|
14f8ab |
- * in Z releases.
|
|
|
14f8ab |
+ *
|
|
|
14f8ab |
+ * NOTE:
|
|
|
14f8ab |
+ * Starting with RHS-3.0, the op-version will be multi-digit integer values
|
|
|
14f8ab |
+ * based on the RHS version, instead of a simply incrementing integer value. The
|
|
|
14f8ab |
+ * op-version for a given RHS X(Major).Y(Minor).Z(Update) release will be an
|
|
|
14f8ab |
+ * integer with digits XYZ. The Y and Z values will be 2 digits wide always
|
|
|
14f8ab |
+ * padded with 0 as needed. This should allow for some gaps between two Y
|
|
|
14f8ab |
+ * releases for backports of features in Z releases.
|
|
|
14f8ab |
+ *
|
|
|
14f8ab |
+ * NOTE:
|
|
|
14f8ab |
+ * Starting with RHGS-3.1, the op-version will be the same as the upstream
|
|
|
14f8ab |
+ * GlusterFS op-versions. This is to allow proper access to upstream clients of
|
|
|
14f8ab |
+ * version 3.7.x or greater, proper access to the RHGS volumes.
|
|
|
14f8ab |
*/
|
|
|
14f8ab |
#define GD_OP_VERSION_MIN \
|
|
|
14f8ab |
1 /* MIN is the fresh start op-version, mostly \
|
|
|
14f8ab |
@@ -51,7 +56,13 @@
|
|
|
14f8ab |
introduction of newer \
|
|
|
14f8ab |
versions */
|
|
|
14f8ab |
|
|
|
14f8ab |
-#define GD_OP_VERSION_3_6_0 30600 /* Op-Version for GlusterFS 3.6.0 */
|
|
|
14f8ab |
+#define GD_OP_VERSION_RHS_3_0 30000 /* Op-Version of RHS 3.0 */
|
|
|
14f8ab |
+
|
|
|
14f8ab |
+#define GD_OP_VER_PERSISTENT_AFR_XATTRS GD_OP_VERSION_RHS_3_0
|
|
|
14f8ab |
+
|
|
|
14f8ab |
+#define GD_OP_VERSION_RHS_2_1_5 20105 /* RHS 2.1 update 5 */
|
|
|
14f8ab |
+
|
|
|
14f8ab |
+#define GD_OP_VERSION_RHS_3_0_4 30004 /* Op-Version of RHS 3.0.4 */
|
|
|
14f8ab |
|
|
|
14f8ab |
#define GD_OP_VERSION_3_7_0 30700 /* Op-version for GlusterFS 3.7.0 */
|
|
|
14f8ab |
|
|
|
14f8ab |
@@ -115,8 +126,6 @@
|
|
|
14f8ab |
|
|
|
14f8ab |
#define GD_OP_VERSION_6_0 60000 /* Op-version for GlusterFS 6.0 */
|
|
|
14f8ab |
|
|
|
14f8ab |
-#define GD_OP_VER_PERSISTENT_AFR_XATTRS GD_OP_VERSION_3_6_0
|
|
|
14f8ab |
-
|
|
|
14f8ab |
#include "glusterfs/xlator.h"
|
|
|
14f8ab |
#include "glusterfs/options.h"
|
|
|
14f8ab |
|
|
|
14f8ab |
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c
|
|
|
14f8ab |
index fa0e0f2..121d46b 100644
|
|
|
14f8ab |
--- a/rpc/rpc-transport/socket/src/socket.c
|
|
|
14f8ab |
+++ b/rpc/rpc-transport/socket/src/socket.c
|
|
|
14f8ab |
@@ -4704,7 +4704,7 @@ struct volume_options options[] = {
|
|
|
14f8ab |
.description = "SSL CA list. Ignored if SSL is not enabled."},
|
|
|
14f8ab |
{.key = {"ssl-cert-depth"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_INT,
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE,
|
|
|
14f8ab |
.description = "Maximum certificate-chain depth. If zero, the "
|
|
|
14f8ab |
"peer's certificate itself must be in the local "
|
|
|
14f8ab |
@@ -4713,7 +4713,7 @@ struct volume_options options[] = {
|
|
|
14f8ab |
"local list. Ignored if SSL is not enabled."},
|
|
|
14f8ab |
{.key = {"ssl-cipher-list"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_STR,
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE,
|
|
|
14f8ab |
.description = "Allowed SSL ciphers. Ignored if SSL is not enabled."},
|
|
|
14f8ab |
{.key = {"ssl-dh-param"},
|
|
|
14f8ab |
diff --git a/xlators/cluster/dht/src/dht-shared.c b/xlators/cluster/dht/src/dht-shared.c
|
|
|
14f8ab |
index c7ef2f1..ea4b7c6 100644
|
|
|
14f8ab |
--- a/xlators/cluster/dht/src/dht-shared.c
|
|
|
14f8ab |
+++ b/xlators/cluster/dht/src/dht-shared.c
|
|
|
14f8ab |
@@ -1064,7 +1064,7 @@ struct volume_options dht_options[] = {
|
|
|
14f8ab |
"When enabled, files will be allocated to bricks "
|
|
|
14f8ab |
"with a probability proportional to their size. Otherwise, all "
|
|
|
14f8ab |
"bricks will have the same probability (legacy behavior).",
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.level = OPT_STATUS_BASIC,
|
|
|
14f8ab |
.flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC},
|
|
|
14f8ab |
|
|
|
14f8ab |
@@ -1161,7 +1161,7 @@ struct volume_options dht_options[] = {
|
|
|
14f8ab |
"from which hash ranges are allocated starting with 0. "
|
|
|
14f8ab |
"Note that we still use a directory/file's name to determine the "
|
|
|
14f8ab |
"subvolume to which it hashes",
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
},
|
|
|
14f8ab |
|
|
|
14f8ab |
{.key = {"rebal-throttle"},
|
|
|
14f8ab |
@@ -1174,7 +1174,7 @@ struct volume_options dht_options[] = {
|
|
|
14f8ab |
"migrated at a time. Lazy will allow only one file to "
|
|
|
14f8ab |
"be migrated at a time and aggressive will allow "
|
|
|
14f8ab |
"max of [($(processing units) - 4) / 2), 4]",
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_7_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.level = OPT_STATUS_BASIC,
|
|
|
14f8ab |
.flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC
|
|
|
14f8ab |
|
|
|
14f8ab |
diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c
|
|
|
14f8ab |
index f12191f..41b57c5 100644
|
|
|
14f8ab |
--- a/xlators/debug/io-stats/src/io-stats.c
|
|
|
14f8ab |
+++ b/xlators/debug/io-stats/src/io-stats.c
|
|
|
14f8ab |
@@ -4333,7 +4333,7 @@ struct volume_options options[] = {
|
|
|
14f8ab |
.value = {GF_LOGGER_GLUSTER_LOG, GF_LOGGER_SYSLOG}},
|
|
|
14f8ab |
{.key = {"client-logger"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_STR,
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT | OPT_FLAG_DOC,
|
|
|
14f8ab |
.tags = {"io-stats"},
|
|
|
14f8ab |
.default_value = GF_LOGGER_GLUSTER_LOG,
|
|
|
14f8ab |
@@ -4342,7 +4342,7 @@ struct volume_options options[] = {
|
|
|
14f8ab |
.value = {GF_LOGGER_GLUSTER_LOG, GF_LOGGER_SYSLOG}},
|
|
|
14f8ab |
{.key = {"brick-logger"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_STR,
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
|
|
|
14f8ab |
.tags = {"io-stats"},
|
|
|
14f8ab |
.default_value = GF_LOGGER_GLUSTER_LOG,
|
|
|
14f8ab |
@@ -4354,7 +4354,7 @@ struct volume_options options[] = {
|
|
|
14f8ab |
.value = {GF_LOG_FORMAT_NO_MSG_ID, GF_LOG_FORMAT_WITH_MSG_ID}},
|
|
|
14f8ab |
{.key = {"client-log-format"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_STR,
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT | OPT_FLAG_DOC,
|
|
|
14f8ab |
.tags = {"io-stats"},
|
|
|
14f8ab |
.default_value = GF_LOG_FORMAT_WITH_MSG_ID,
|
|
|
14f8ab |
@@ -4362,7 +4362,7 @@ struct volume_options options[] = {
|
|
|
14f8ab |
.value = {GF_LOG_FORMAT_NO_MSG_ID, GF_LOG_FORMAT_WITH_MSG_ID}},
|
|
|
14f8ab |
{.key = {"brick-log-format"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_STR,
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
|
|
|
14f8ab |
.tags = {"io-stats"},
|
|
|
14f8ab |
.default_value = GF_LOG_FORMAT_WITH_MSG_ID,
|
|
|
14f8ab |
@@ -4377,7 +4377,7 @@ struct volume_options options[] = {
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{.key = {"client-log-buf-size"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_INT,
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT | OPT_FLAG_DOC,
|
|
|
14f8ab |
.tags = {"io-stats"},
|
|
|
14f8ab |
.min = GF_LOG_LRU_BUFSIZE_MIN,
|
|
|
14f8ab |
@@ -4388,7 +4388,7 @@ struct volume_options options[] = {
|
|
|
14f8ab |
" the value of the option client-log-flush-timeout."},
|
|
|
14f8ab |
{.key = {"brick-log-buf-size"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_INT,
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
|
|
|
14f8ab |
.tags = {"io-stats"},
|
|
|
14f8ab |
.min = GF_LOG_LRU_BUFSIZE_MIN,
|
|
|
14f8ab |
@@ -4406,7 +4406,7 @@ struct volume_options options[] = {
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{.key = {"client-log-flush-timeout"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_TIME,
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT | OPT_FLAG_DOC,
|
|
|
14f8ab |
.tags = {"io-stats"},
|
|
|
14f8ab |
.min = GF_LOG_FLUSH_TIMEOUT_MIN,
|
|
|
14f8ab |
@@ -4417,7 +4417,7 @@ struct volume_options options[] = {
|
|
|
14f8ab |
" the value of the option client-log-flush-timeout."},
|
|
|
14f8ab |
{.key = {"brick-log-flush-timeout"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_TIME,
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
|
|
|
14f8ab |
.tags = {"io-stats"},
|
|
|
14f8ab |
.min = GF_LOG_FLUSH_TIMEOUT_MIN,
|
|
|
14f8ab |
diff --git a/xlators/features/barrier/src/barrier.c b/xlators/features/barrier/src/barrier.c
|
|
|
14f8ab |
index a601c7f..0923992 100644
|
|
|
14f8ab |
--- a/xlators/features/barrier/src/barrier.c
|
|
|
14f8ab |
+++ b/xlators/features/barrier/src/barrier.c
|
|
|
14f8ab |
@@ -774,7 +774,7 @@ struct volume_options options[] = {
|
|
|
14f8ab |
{.key = {"barrier"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_BOOL,
|
|
|
14f8ab |
.default_value = "disable",
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE,
|
|
|
14f8ab |
.description = "When \"enabled\", blocks acknowledgements to application "
|
|
|
14f8ab |
"for file operations such as rmdir, rename, unlink, "
|
|
|
14f8ab |
@@ -784,7 +784,7 @@ struct volume_options options[] = {
|
|
|
14f8ab |
{.key = {"barrier-timeout"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_TIME,
|
|
|
14f8ab |
.default_value = BARRIER_TIMEOUT,
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE,
|
|
|
14f8ab |
.description = "After 'timeout' seconds since the time 'barrier' "
|
|
|
14f8ab |
"option was set to \"on\", acknowledgements to file "
|
|
|
14f8ab |
diff --git a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
|
|
|
14f8ab |
index 38483a1..ad9a572 100644
|
|
|
14f8ab |
--- a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
|
|
|
14f8ab |
+++ b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
|
|
|
14f8ab |
@@ -1195,7 +1195,7 @@ glusterd_op_perform_add_bricks(glusterd_volinfo_t *volinfo, int32_t count,
|
|
|
14f8ab |
/* A bricks mount dir is required only by snapshots which were
|
|
|
14f8ab |
* introduced in gluster-3.6.0
|
|
|
14f8ab |
*/
|
|
|
14f8ab |
- if (conf->op_version >= GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (conf->op_version >= GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
brick_mount_dir = NULL;
|
|
|
14f8ab |
|
|
|
14f8ab |
snprintf(key, sizeof(key), "brick%d.mount_dir", i);
|
|
|
14f8ab |
@@ -1729,7 +1729,7 @@ glusterd_op_stage_add_brick(dict_t *dict, char **op_errstr, dict_t *rsp_dict)
|
|
|
14f8ab |
/* A bricks mount dir is required only by snapshots which were
|
|
|
14f8ab |
* introduced in gluster-3.6.0
|
|
|
14f8ab |
*/
|
|
|
14f8ab |
- if (conf->op_version >= GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (conf->op_version >= GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
ret = glusterd_get_brick_mount_dir(
|
|
|
14f8ab |
brickinfo->path, brickinfo->hostname, brickinfo->mount_dir);
|
|
|
14f8ab |
if (ret) {
|
|
|
14f8ab |
@@ -2085,12 +2085,12 @@ glusterd_op_stage_remove_brick(dict_t *dict, char **op_errstr)
|
|
|
14f8ab |
}
|
|
|
14f8ab |
|
|
|
14f8ab |
/* Check if the connected clients are all of version
|
|
|
14f8ab |
- * glusterfs-3.6 and higher. This is needed to prevent some data
|
|
|
14f8ab |
+ * RHS-2.1u5 and higher. This is needed to prevent some data
|
|
|
14f8ab |
* loss issues that could occur when older clients are connected
|
|
|
14f8ab |
* when rebalance is run.
|
|
|
14f8ab |
*/
|
|
|
14f8ab |
ret = glusterd_check_client_op_version_support(
|
|
|
14f8ab |
- volname, GD_OP_VERSION_3_6_0, NULL);
|
|
|
14f8ab |
+ volname, GD_OP_VERSION_RHS_2_1_5, NULL);
|
|
|
14f8ab |
if (ret) {
|
|
|
14f8ab |
ret = gf_asprintf(op_errstr,
|
|
|
14f8ab |
"Volume %s has one or "
|
|
|
14f8ab |
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
|
|
|
14f8ab |
index f754b52..387643d 100644
|
|
|
14f8ab |
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
|
|
|
14f8ab |
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
|
|
|
14f8ab |
@@ -763,7 +763,7 @@ glusterd_op_txn_begin(rpcsvc_request_t *req, glusterd_op_t op, void *ctx,
|
|
|
14f8ab |
}
|
|
|
14f8ab |
|
|
|
14f8ab |
/* Based on the op_version, acquire a cluster or mgmt_v3 lock */
|
|
|
14f8ab |
- if (priv->op_version < GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (priv->op_version < GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
ret = glusterd_lock(MY_UUID);
|
|
|
14f8ab |
if (ret) {
|
|
|
14f8ab |
gf_msg(this->name, GF_LOG_ERROR, 0, GD_MSG_GLUSTERD_LOCK_FAIL,
|
|
|
14f8ab |
@@ -818,7 +818,7 @@ glusterd_op_txn_begin(rpcsvc_request_t *req, glusterd_op_t op, void *ctx,
|
|
|
14f8ab |
local_locking_done:
|
|
|
14f8ab |
/* If no volname is given as a part of the command, locks will
|
|
|
14f8ab |
* not be held, hence sending stage event. */
|
|
|
14f8ab |
- if (volname || (priv->op_version < GD_OP_VERSION_3_6_0))
|
|
|
14f8ab |
+ if (volname || (priv->op_version < GD_OP_VERSION_RHS_3_0))
|
|
|
14f8ab |
event_type = GD_OP_EVENT_START_LOCK;
|
|
|
14f8ab |
else {
|
|
|
14f8ab |
txn_op_info.state.state = GD_OP_STATE_LOCK_SENT;
|
|
|
14f8ab |
@@ -849,7 +849,7 @@ out:
|
|
|
14f8ab |
if (locked && ret) {
|
|
|
14f8ab |
/* Based on the op-version, we release the
|
|
|
14f8ab |
* cluster or mgmt_v3 lock */
|
|
|
14f8ab |
- if (priv->op_version < GD_OP_VERSION_3_6_0)
|
|
|
14f8ab |
+ if (priv->op_version < GD_OP_VERSION_RHS_3_0)
|
|
|
14f8ab |
glusterd_unlock(MY_UUID);
|
|
|
14f8ab |
else {
|
|
|
14f8ab |
ret = glusterd_mgmt_v3_unlock(volname, MY_UUID, "vol");
|
|
|
14f8ab |
@@ -4432,12 +4432,12 @@ __glusterd_handle_status_volume(rpcsvc_request_t *req)
|
|
|
14f8ab |
}
|
|
|
14f8ab |
|
|
|
14f8ab |
if ((cmd & GF_CLI_STATUS_SNAPD) &&
|
|
|
14f8ab |
- (conf->op_version < GD_OP_VERSION_3_6_0)) {
|
|
|
14f8ab |
+ (conf->op_version < GD_OP_VERSION_RHS_3_0)) {
|
|
|
14f8ab |
snprintf(err_str, sizeof(err_str),
|
|
|
14f8ab |
"The cluster is operating "
|
|
|
14f8ab |
"at a lesser version than %d. Getting the status of "
|
|
|
14f8ab |
"snapd is not allowed in this state",
|
|
|
14f8ab |
- GD_OP_VERSION_3_6_0);
|
|
|
14f8ab |
+ GD_OP_VERSION_RHS_3_0);
|
|
|
14f8ab |
ret = -1;
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
@@ -4459,7 +4459,7 @@ __glusterd_handle_status_volume(rpcsvc_request_t *req)
|
|
|
14f8ab |
"The cluster is operating "
|
|
|
14f8ab |
"at a lesser version than %d. Getting the status of "
|
|
|
14f8ab |
"tierd is not allowed in this state",
|
|
|
14f8ab |
- GD_OP_VERSION_3_6_0);
|
|
|
14f8ab |
+ GD_OP_VERSION_RHS_3_0);
|
|
|
14f8ab |
ret = -1;
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
@@ -6430,7 +6430,7 @@ __glusterd_peer_rpc_notify(struct rpc_clnt *rpc, void *mydata,
|
|
|
14f8ab |
glusterd_friend_sm_state_name_get(peerinfo->state.state));
|
|
|
14f8ab |
|
|
|
14f8ab |
if (peerinfo->connected) {
|
|
|
14f8ab |
- if (conf->op_version < GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (conf->op_version < GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
glusterd_get_lock_owner(&uuid);
|
|
|
14f8ab |
if (!gf_uuid_is_null(uuid) &&
|
|
|
14f8ab |
!gf_uuid_compare(peerinfo->uuid, uuid))
|
|
|
14f8ab |
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
|
|
|
14f8ab |
index 6495a9d..dd3f9eb 100644
|
|
|
14f8ab |
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
|
|
|
14f8ab |
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
|
|
|
14f8ab |
@@ -194,7 +194,7 @@ glusterd_generate_txn_id(dict_t *dict, uuid_t **txn_id)
|
|
|
14f8ab |
if (!*txn_id)
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
|
|
|
14f8ab |
- if (priv->op_version < GD_OP_VERSION_3_6_0)
|
|
|
14f8ab |
+ if (priv->op_version < GD_OP_VERSION_RHS_3_0)
|
|
|
14f8ab |
gf_uuid_copy(**txn_id, priv->global_txn_id);
|
|
|
14f8ab |
else
|
|
|
14f8ab |
gf_uuid_generate(**txn_id);
|
|
|
14f8ab |
@@ -1864,12 +1864,12 @@ glusterd_op_stage_status_volume(dict_t *dict, char **op_errstr)
|
|
|
14f8ab |
}
|
|
|
14f8ab |
|
|
|
14f8ab |
if ((cmd & GF_CLI_STATUS_SNAPD) &&
|
|
|
14f8ab |
- (priv->op_version < GD_OP_VERSION_3_6_0)) {
|
|
|
14f8ab |
+ (priv->op_version < GD_OP_VERSION_RHS_3_0)) {
|
|
|
14f8ab |
snprintf(msg, sizeof(msg),
|
|
|
14f8ab |
"The cluster is operating at "
|
|
|
14f8ab |
"version less than %d. Getting the "
|
|
|
14f8ab |
"status of snapd is not allowed in this state.",
|
|
|
14f8ab |
- GD_OP_VERSION_3_6_0);
|
|
|
14f8ab |
+ GD_OP_VERSION_RHS_3_0);
|
|
|
14f8ab |
ret = -1;
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
@@ -3877,7 +3877,7 @@ glusterd_op_ac_send_lock(glusterd_op_sm_event_t *event, void *ctx)
|
|
|
14f8ab |
continue;
|
|
|
14f8ab |
|
|
|
14f8ab |
/* Based on the op_version, acquire a cluster or mgmt_v3 lock */
|
|
|
14f8ab |
- if (priv->op_version < GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (priv->op_version < GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
proc = &peerinfo->mgmt->proctable[GLUSTERD_MGMT_CLUSTER_LOCK];
|
|
|
14f8ab |
if (proc->fn) {
|
|
|
14f8ab |
ret = proc->fn(NULL, this, peerinfo);
|
|
|
14f8ab |
@@ -3980,7 +3980,7 @@ glusterd_op_ac_send_unlock(glusterd_op_sm_event_t *event, void *ctx)
|
|
|
14f8ab |
continue;
|
|
|
14f8ab |
/* Based on the op_version,
|
|
|
14f8ab |
* release the cluster or mgmt_v3 lock */
|
|
|
14f8ab |
- if (priv->op_version < GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (priv->op_version < GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
proc = &peerinfo->mgmt->proctable[GLUSTERD_MGMT_CLUSTER_UNLOCK];
|
|
|
14f8ab |
if (proc->fn) {
|
|
|
14f8ab |
ret = proc->fn(NULL, this, peerinfo);
|
|
|
14f8ab |
@@ -4957,7 +4957,7 @@ glusterd_op_modify_op_ctx(glusterd_op_t op, void *ctx)
|
|
|
14f8ab |
count = brick_index_max + other_count + 1;
|
|
|
14f8ab |
|
|
|
14f8ab |
/*
|
|
|
14f8ab |
- * a glusterd lesser than version 3.7 will be sending the
|
|
|
14f8ab |
+ * a glusterd lesser than version RHS-3.0.4 will be sending the
|
|
|
14f8ab |
* rdma port in older key. Changing that value from here
|
|
|
14f8ab |
* to support backward compatibility
|
|
|
14f8ab |
*/
|
|
|
14f8ab |
@@ -4977,7 +4977,7 @@ glusterd_op_modify_op_ctx(glusterd_op_t op, void *ctx)
|
|
|
14f8ab |
ret = glusterd_volinfo_find(volname, &volinfo);
|
|
|
14f8ab |
if (ret)
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
- if (conf->op_version < GD_OP_VERSION_3_7_0 &&
|
|
|
14f8ab |
+ if (conf->op_version < GD_OP_VERSION_RHS_3_0_4 &&
|
|
|
14f8ab |
volinfo->transport_type == GF_TRANSPORT_RDMA) {
|
|
|
14f8ab |
ret = glusterd_op_modify_port_key(op_ctx, brick_index_max);
|
|
|
14f8ab |
if (ret)
|
|
|
14f8ab |
@@ -5576,7 +5576,7 @@ glusterd_op_txn_complete(uuid_t *txn_id)
|
|
|
14f8ab |
glusterd_op_clear_errstr();
|
|
|
14f8ab |
|
|
|
14f8ab |
/* Based on the op-version, we release the cluster or mgmt_v3 lock */
|
|
|
14f8ab |
- if (priv->op_version < GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (priv->op_version < GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
ret = glusterd_unlock(MY_UUID);
|
|
|
14f8ab |
/* unlock can't/shouldn't fail here!! */
|
|
|
14f8ab |
if (ret)
|
|
|
14f8ab |
diff --git a/xlators/mgmt/glusterd/src/glusterd-peer-utils.c b/xlators/mgmt/glusterd/src/glusterd-peer-utils.c
|
|
|
14f8ab |
index 5b5959e..f24c86e 100644
|
|
|
14f8ab |
--- a/xlators/mgmt/glusterd/src/glusterd-peer-utils.c
|
|
|
14f8ab |
+++ b/xlators/mgmt/glusterd/src/glusterd-peer-utils.c
|
|
|
14f8ab |
@@ -547,7 +547,7 @@ out:
|
|
|
14f8ab |
* @prefix. All the parameters are compulsory.
|
|
|
14f8ab |
*
|
|
|
14f8ab |
* The complete address list is added to the dict only if the cluster op-version
|
|
|
14f8ab |
- * is >= GD_OP_VERSION_3_6_0
|
|
|
14f8ab |
+ * is >= GD_OP_VERSION_3_7_0
|
|
|
14f8ab |
*/
|
|
|
14f8ab |
int
|
|
|
14f8ab |
gd_add_friend_to_dict(glusterd_peerinfo_t *friend, dict_t *dict,
|
|
|
14f8ab |
@@ -593,7 +593,7 @@ gd_add_friend_to_dict(glusterd_peerinfo_t *friend, dict_t *dict,
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
|
|
|
14f8ab |
- if (conf->op_version < GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (conf->op_version < GD_OP_VERSION_3_7_0) {
|
|
|
14f8ab |
ret = 0;
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
@@ -778,7 +778,7 @@ gd_update_peerinfo_from_dict(glusterd_peerinfo_t *peerinfo, dict_t *dict,
|
|
|
14f8ab |
GF_FREE(peerinfo->hostname);
|
|
|
14f8ab |
peerinfo->hostname = gf_strdup(hostname);
|
|
|
14f8ab |
|
|
|
14f8ab |
- if (conf->op_version < GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (conf->op_version < GD_OP_VERSION_3_7_0) {
|
|
|
14f8ab |
ret = 0;
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
@@ -894,7 +894,7 @@ gd_add_peer_hostnames_to_dict(glusterd_peerinfo_t *peerinfo, dict_t *dict,
|
|
|
14f8ab |
conf = this->private;
|
|
|
14f8ab |
GF_VALIDATE_OR_GOTO(this->name, (conf != NULL), out);
|
|
|
14f8ab |
|
|
|
14f8ab |
- if (conf->op_version < GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (conf->op_version < GD_OP_VERSION_3_7_0) {
|
|
|
14f8ab |
ret = 0;
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
|
|
|
14f8ab |
index 34b0294..6365b6e 100644
|
|
|
14f8ab |
--- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c
|
|
|
14f8ab |
+++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
|
|
|
14f8ab |
@@ -792,13 +792,13 @@ glusterd_mgmt_v3_op_stage_rebalance(dict_t *dict, char **op_errstr)
|
|
|
14f8ab |
case GF_DEFRAG_CMD_START:
|
|
|
14f8ab |
case GF_DEFRAG_CMD_START_LAYOUT_FIX:
|
|
|
14f8ab |
/* Check if the connected clients are all of version
|
|
|
14f8ab |
- * glusterfs-3.6 and higher. This is needed to prevent some data
|
|
|
14f8ab |
+ * RHS-2.1u5 and higher. This is needed to prevent some data
|
|
|
14f8ab |
* loss issues that could occur when older clients are connected
|
|
|
14f8ab |
* when rebalance is run. This check can be bypassed by using
|
|
|
14f8ab |
* 'force'
|
|
|
14f8ab |
*/
|
|
|
14f8ab |
ret = glusterd_check_client_op_version_support(
|
|
|
14f8ab |
- volname, GD_OP_VERSION_3_6_0, NULL);
|
|
|
14f8ab |
+ volname, GD_OP_VERSION_RHS_2_1_5, NULL);
|
|
|
14f8ab |
if (ret) {
|
|
|
14f8ab |
ret = gf_asprintf(op_errstr,
|
|
|
14f8ab |
"Volume %s has one or "
|
|
|
14f8ab |
diff --git a/xlators/mgmt/glusterd/src/glusterd-replace-brick.c b/xlators/mgmt/glusterd/src/glusterd-replace-brick.c
|
|
|
14f8ab |
index ca1de1a..0615081 100644
|
|
|
14f8ab |
--- a/xlators/mgmt/glusterd/src/glusterd-replace-brick.c
|
|
|
14f8ab |
+++ b/xlators/mgmt/glusterd/src/glusterd-replace-brick.c
|
|
|
14f8ab |
@@ -297,7 +297,7 @@ glusterd_op_stage_replace_brick(dict_t *dict, char **op_errstr,
|
|
|
14f8ab |
if (ret)
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
|
|
|
14f8ab |
- } else if (priv->op_version >= GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ } else if (priv->op_version >= GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
/* A bricks mount dir is required only by snapshots which were
|
|
|
14f8ab |
* introduced in gluster-3.6.0
|
|
|
14f8ab |
*/
|
|
|
14f8ab |
@@ -396,7 +396,7 @@ glusterd_op_perform_replace_brick(glusterd_volinfo_t *volinfo, char *old_brick,
|
|
|
14f8ab |
/* A bricks mount dir is required only by snapshots which were
|
|
|
14f8ab |
* introduced in gluster-3.6.0
|
|
|
14f8ab |
*/
|
|
|
14f8ab |
- if (conf->op_version >= GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (conf->op_version >= GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
ret = dict_get_strn(dict, "brick1.mount_dir", SLEN("brick1.mount_dir"),
|
|
|
14f8ab |
&brick_mount_dir);
|
|
|
14f8ab |
if (ret) {
|
|
|
14f8ab |
diff --git a/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c b/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c
|
|
|
14f8ab |
index 728781d..4ec9700 100644
|
|
|
14f8ab |
--- a/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c
|
|
|
14f8ab |
+++ b/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c
|
|
|
14f8ab |
@@ -288,11 +288,11 @@ __glusterd_probe_cbk(struct rpc_req *req, struct iovec *iov, int count,
|
|
|
14f8ab |
* we need to add the new hostname to the peer.
|
|
|
14f8ab |
*
|
|
|
14f8ab |
* This addition should only be done for cluster op-version >=
|
|
|
14f8ab |
- * GD_OP_VERSION_3_6_0 as address lists are only supported from then on.
|
|
|
14f8ab |
+ * GD_OP_VERSION_3_7_0 as address lists are only supported from then on.
|
|
|
14f8ab |
* Also, this update should only be done when an explicit CLI probe
|
|
|
14f8ab |
* command was used to begin the probe process.
|
|
|
14f8ab |
*/
|
|
|
14f8ab |
- if ((conf->op_version >= GD_OP_VERSION_3_6_0) &&
|
|
|
14f8ab |
+ if ((conf->op_version >= GD_OP_VERSION_3_7_0) &&
|
|
|
14f8ab |
(gf_uuid_compare(rsp.uuid, peerinfo->uuid) == 0)) {
|
|
|
14f8ab |
ctx = ((call_frame_t *)myframe)->local;
|
|
|
14f8ab |
/* Presence of ctx->req implies this probe was started by a cli
|
|
|
14f8ab |
@@ -1544,7 +1544,7 @@ glusterd_rpc_friend_add(call_frame_t *frame, xlator_t *this, void *data)
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
|
|
|
14f8ab |
- if (priv->op_version >= GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (priv->op_version >= GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
ret = glusterd_add_missed_snaps_to_export_dict(peer_data);
|
|
|
14f8ab |
if (ret) {
|
|
|
14f8ab |
gf_msg(this->name, GF_LOG_ERROR, 0,
|
|
|
14f8ab |
diff --git a/xlators/mgmt/glusterd/src/glusterd-sm.c b/xlators/mgmt/glusterd/src/glusterd-sm.c
|
|
|
14f8ab |
index 73a11a3..54a7bd1 100644
|
|
|
14f8ab |
--- a/xlators/mgmt/glusterd/src/glusterd-sm.c
|
|
|
14f8ab |
+++ b/xlators/mgmt/glusterd/src/glusterd-sm.c
|
|
|
14f8ab |
@@ -955,7 +955,7 @@ glusterd_ac_handle_friend_add_req(glusterd_friend_sm_event_t *event, void *ctx)
|
|
|
14f8ab |
|
|
|
14f8ab |
/* Compare missed_snapshot list with the peer *
|
|
|
14f8ab |
* if volume comparison is successful */
|
|
|
14f8ab |
- if ((op_ret == 0) && (conf->op_version >= GD_OP_VERSION_3_6_0)) {
|
|
|
14f8ab |
+ if ((op_ret == 0) && (conf->op_version >= GD_OP_VERSION_RHS_3_0)) {
|
|
|
14f8ab |
ret = glusterd_import_friend_missed_snap_list(ev_ctx->vols);
|
|
|
14f8ab |
if (ret) {
|
|
|
14f8ab |
gf_msg(this->name, GF_LOG_ERROR, 0,
|
|
|
14f8ab |
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c b/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c
|
|
|
14f8ab |
index 1ece374..2958443 100644
|
|
|
14f8ab |
--- a/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c
|
|
|
14f8ab |
+++ b/xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c
|
|
|
14f8ab |
@@ -470,7 +470,7 @@ gd_add_brick_snap_details_to_dict(dict_t *dict, char *prefix,
|
|
|
14f8ab |
GF_VALIDATE_OR_GOTO(this->name, (prefix != NULL), out);
|
|
|
14f8ab |
GF_VALIDATE_OR_GOTO(this->name, (brickinfo != NULL), out);
|
|
|
14f8ab |
|
|
|
14f8ab |
- if (conf->op_version < GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (conf->op_version < GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
ret = 0;
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
@@ -547,7 +547,7 @@ gd_add_vol_snap_details_to_dict(dict_t *dict, char *prefix,
|
|
|
14f8ab |
GF_VALIDATE_OR_GOTO(this->name, (volinfo != NULL), out);
|
|
|
14f8ab |
GF_VALIDATE_OR_GOTO(this->name, (prefix != NULL), out);
|
|
|
14f8ab |
|
|
|
14f8ab |
- if (conf->op_version < GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (conf->op_version < GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
ret = 0;
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
@@ -846,7 +846,7 @@ gd_import_new_brick_snap_details(dict_t *dict, char *prefix,
|
|
|
14f8ab |
GF_VALIDATE_OR_GOTO(this->name, (prefix != NULL), out);
|
|
|
14f8ab |
GF_VALIDATE_OR_GOTO(this->name, (brickinfo != NULL), out);
|
|
|
14f8ab |
|
|
|
14f8ab |
- if (conf->op_version < GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (conf->op_version < GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
ret = 0;
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
@@ -903,8 +903,8 @@ out:
|
|
|
14f8ab |
* Imports the snapshot details of a volume if required and available
|
|
|
14f8ab |
*
|
|
|
14f8ab |
* Snapshot details will be imported only if cluster.op_version is greater than
|
|
|
14f8ab |
- * or equal to GD_OP_VERSION_3_6_0, the op-version from which volume snapshot is
|
|
|
14f8ab |
- * supported.
|
|
|
14f8ab |
+ * or equal to GD_OP_VERSION_RHS_3_0, the op-version from which volume snapshot
|
|
|
14f8ab |
+ * is supported.
|
|
|
14f8ab |
*/
|
|
|
14f8ab |
int
|
|
|
14f8ab |
gd_import_volume_snap_details(dict_t *dict, glusterd_volinfo_t *volinfo,
|
|
|
14f8ab |
@@ -928,7 +928,7 @@ gd_import_volume_snap_details(dict_t *dict, glusterd_volinfo_t *volinfo,
|
|
|
14f8ab |
GF_VALIDATE_OR_GOTO(this->name, (prefix != NULL), out);
|
|
|
14f8ab |
GF_VALIDATE_OR_GOTO(this->name, (volname != NULL), out);
|
|
|
14f8ab |
|
|
|
14f8ab |
- if (conf->op_version < GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (conf->op_version < GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
ret = 0;
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
|
|
|
14f8ab |
index 8f5cd6d..c56be91 100644
|
|
|
14f8ab |
--- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c
|
|
|
14f8ab |
+++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
|
|
|
14f8ab |
@@ -9345,14 +9345,14 @@ glusterd_handle_snapshot_fn(rpcsvc_request_t *req)
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
|
|
|
14f8ab |
- if (conf->op_version < GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (conf->op_version < GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
snprintf(err_str, sizeof(err_str),
|
|
|
14f8ab |
"Cluster operating version"
|
|
|
14f8ab |
" is lesser than the supported version "
|
|
|
14f8ab |
"for a snapshot");
|
|
|
14f8ab |
op_errno = EG_OPNOTSUP;
|
|
|
14f8ab |
gf_msg(this->name, GF_LOG_ERROR, 0, GD_MSG_UNSUPPORTED_VERSION,
|
|
|
14f8ab |
- "%s (%d < %d)", err_str, conf->op_version, GD_OP_VERSION_3_6_0);
|
|
|
14f8ab |
+ "%s (%d < %d)", err_str, conf->op_version, GD_OP_VERSION_RHS_3_0);
|
|
|
14f8ab |
ret = -1;
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c
|
|
|
14f8ab |
index 7acea05..64447e7 100644
|
|
|
14f8ab |
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
|
|
|
14f8ab |
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
|
|
|
14f8ab |
@@ -313,7 +313,7 @@ gd_store_brick_snap_details_write(int fd, glusterd_brickinfo_t *brickinfo)
|
|
|
14f8ab |
GF_VALIDATE_OR_GOTO(this->name, (fd > 0), out);
|
|
|
14f8ab |
GF_VALIDATE_OR_GOTO(this->name, (brickinfo != NULL), out);
|
|
|
14f8ab |
|
|
|
14f8ab |
- if (conf->op_version < GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (conf->op_version < GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
ret = 0;
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
@@ -813,7 +813,7 @@ glusterd_volume_write_snap_details(int fd, glusterd_volinfo_t *volinfo)
|
|
|
14f8ab |
GF_VALIDATE_OR_GOTO(this->name, (fd > 0), out);
|
|
|
14f8ab |
GF_VALIDATE_OR_GOTO(this->name, (volinfo != NULL), out);
|
|
|
14f8ab |
|
|
|
14f8ab |
- if (conf->op_version < GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (conf->op_version < GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
ret = 0;
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
@@ -967,7 +967,7 @@ glusterd_volume_exclude_options_write(int fd, glusterd_volinfo_t *volinfo)
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
|
|
|
14f8ab |
- if (conf->op_version >= GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (conf->op_version >= GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
snprintf(buf, sizeof(buf), "%d", volinfo->disperse_count);
|
|
|
14f8ab |
ret = gf_store_save_value(fd, GLUSTERD_STORE_KEY_VOL_DISPERSE_CNT, buf);
|
|
|
14f8ab |
if (ret)
|
|
|
14f8ab |
@@ -2502,7 +2502,7 @@ glusterd_store_retrieve_snapd(glusterd_volinfo_t *volinfo)
|
|
|
14f8ab |
conf = THIS->private;
|
|
|
14f8ab |
GF_ASSERT(volinfo);
|
|
|
14f8ab |
|
|
|
14f8ab |
- if (conf->op_version < GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (conf->op_version < GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
ret = 0;
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
@@ -2510,15 +2510,16 @@ glusterd_store_retrieve_snapd(glusterd_volinfo_t *volinfo)
|
|
|
14f8ab |
/*
|
|
|
14f8ab |
* This is needed for upgrade situations. Say a volume is created with
|
|
|
14f8ab |
* older version of glusterfs and upgraded to a glusterfs version equal
|
|
|
14f8ab |
- * to or greater than GD_OP_VERSION_3_6_0. The older glusterd would not
|
|
|
14f8ab |
- * have created the snapd.info file related to snapshot daemon for user
|
|
|
14f8ab |
- * serviceable snapshots. So as part of upgrade when the new glusterd
|
|
|
14f8ab |
- * starts, as part of restore (restoring the volume to be precise), it
|
|
|
14f8ab |
- * tries to snapd related info from snapd.info file. But since there was
|
|
|
14f8ab |
- * no such file till now, the restore operation fails. Thus, to prevent
|
|
|
14f8ab |
- * it from happening check whether user serviceable snapshots features
|
|
|
14f8ab |
- * is enabled before restoring snapd. If its disabled, then simply
|
|
|
14f8ab |
- * exit by returning success (without even checking for the snapd.info).
|
|
|
14f8ab |
+ * to or greater than GD_OP_VERSION_RHS_3_0. The older glusterd would
|
|
|
14f8ab |
+ * not have created the snapd.info file related to snapshot daemon for
|
|
|
14f8ab |
+ * user serviceable snapshots. So as part of upgrade when the new
|
|
|
14f8ab |
+ * glusterd starts, as part of restore (restoring the volume to be
|
|
|
14f8ab |
+ * precise), it tries to snapd related info from snapd.info file. But
|
|
|
14f8ab |
+ * since there was no such file till now, the restore operation fails.
|
|
|
14f8ab |
+ * Thus, to prevent it from happening check whether user serviceable
|
|
|
14f8ab |
+ * snapshots features is enabled before restoring snapd. If its
|
|
|
14f8ab |
+ * disbaled, then simply exit by returning success (without even
|
|
|
14f8ab |
+ * checking for the snapd.info).
|
|
|
14f8ab |
*/
|
|
|
14f8ab |
|
|
|
14f8ab |
if (!dict_get_str_boolean(volinfo->dict, "features.uss", _gf_false)) {
|
|
|
14f8ab |
diff --git a/xlators/mgmt/glusterd/src/glusterd-syncop.c b/xlators/mgmt/glusterd/src/glusterd-syncop.c
|
|
|
14f8ab |
index 45b221c..1741cf8 100644
|
|
|
14f8ab |
--- a/xlators/mgmt/glusterd/src/glusterd-syncop.c
|
|
|
14f8ab |
+++ b/xlators/mgmt/glusterd/src/glusterd-syncop.c
|
|
|
14f8ab |
@@ -1827,7 +1827,7 @@ gd_sync_task_begin(dict_t *op_ctx, rpcsvc_request_t *req)
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
|
|
|
14f8ab |
- if (conf->op_version < GD_OP_VERSION_3_6_0)
|
|
|
14f8ab |
+ if (conf->op_version < GD_OP_VERSION_RHS_3_0)
|
|
|
14f8ab |
cluster_lock = _gf_true;
|
|
|
14f8ab |
|
|
|
14f8ab |
/* Based on the op_version, acquire a cluster or mgmt_v3 lock */
|
|
|
14f8ab |
diff --git a/xlators/mgmt/glusterd/src/glusterd-tier.c b/xlators/mgmt/glusterd/src/glusterd-tier.c
|
|
|
14f8ab |
index dd86cf5..4dc0d44 100644
|
|
|
14f8ab |
--- a/xlators/mgmt/glusterd/src/glusterd-tier.c
|
|
|
14f8ab |
+++ b/xlators/mgmt/glusterd/src/glusterd-tier.c
|
|
|
14f8ab |
@@ -867,7 +867,8 @@ glusterd_op_stage_tier(dict_t *dict, char **op_errstr, dict_t *rsp_dict)
|
|
|
14f8ab |
* when rebalance is run. This check can be bypassed by using
|
|
|
14f8ab |
* 'force'
|
|
|
14f8ab |
*/
|
|
|
14f8ab |
- ret = glusterd_check_client_op_version_support(volname, GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ ret = glusterd_check_client_op_version_support(volname,
|
|
|
14f8ab |
+ GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
NULL);
|
|
|
14f8ab |
if (ret) {
|
|
|
14f8ab |
ret = gf_asprintf(op_errstr,
|
|
|
14f8ab |
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
|
|
|
14f8ab |
index 8bbd795..52b83ec 100644
|
|
|
14f8ab |
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
|
|
|
14f8ab |
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
|
|
|
14f8ab |
@@ -12226,10 +12226,10 @@ gd_update_volume_op_versions(glusterd_volinfo_t *volinfo)
|
|
|
14f8ab |
}
|
|
|
14f8ab |
|
|
|
14f8ab |
if (volinfo->type == GF_CLUSTER_TYPE_DISPERSE) {
|
|
|
14f8ab |
- if (volinfo->op_version < GD_OP_VERSION_3_6_0)
|
|
|
14f8ab |
- volinfo->op_version = GD_OP_VERSION_3_6_0;
|
|
|
14f8ab |
- if (volinfo->client_op_version < GD_OP_VERSION_3_6_0)
|
|
|
14f8ab |
- volinfo->client_op_version = GD_OP_VERSION_3_6_0;
|
|
|
14f8ab |
+ if (volinfo->op_version < GD_OP_VERSION_3_7_0)
|
|
|
14f8ab |
+ volinfo->op_version = GD_OP_VERSION_3_7_0;
|
|
|
14f8ab |
+ if (volinfo->client_op_version < GD_OP_VERSION_3_7_0)
|
|
|
14f8ab |
+ volinfo->client_op_version = GD_OP_VERSION_3_7_0;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
|
|
|
14f8ab |
return;
|
|
|
14f8ab |
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
|
|
|
14f8ab |
index 7cfba3d..86ef470 100644
|
|
|
14f8ab |
--- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
|
|
|
14f8ab |
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
|
|
|
14f8ab |
@@ -1389,7 +1389,7 @@ glusterd_op_stage_create_volume(dict_t *dict, char **op_errstr,
|
|
|
14f8ab |
/* A bricks mount dir is required only by snapshots which were
|
|
|
14f8ab |
* introduced in gluster-3.6.0
|
|
|
14f8ab |
*/
|
|
|
14f8ab |
- if (priv->op_version >= GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (priv->op_version >= GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
ret = glusterd_get_brick_mount_dir(brick_info->path,
|
|
|
14f8ab |
brick_info->hostname,
|
|
|
14f8ab |
brick_info->mount_dir);
|
|
|
14f8ab |
@@ -1698,7 +1698,7 @@ glusterd_op_stage_start_volume(dict_t *dict, char **op_errstr, dict_t *rsp_dict)
|
|
|
14f8ab |
/* A bricks mount dir is required only by snapshots which were
|
|
|
14f8ab |
* introduced in gluster-3.6.0
|
|
|
14f8ab |
*/
|
|
|
14f8ab |
- if (priv->op_version >= GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (priv->op_version >= GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
if (strlen(brickinfo->mount_dir) < 1) {
|
|
|
14f8ab |
ret = glusterd_get_brick_mount_dir(
|
|
|
14f8ab |
brickinfo->path, brickinfo->hostname, brickinfo->mount_dir);
|
|
|
14f8ab |
@@ -2395,10 +2395,10 @@ glusterd_op_create_volume(dict_t *dict, char **op_errstr)
|
|
|
14f8ab |
volname);
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
- if (priv->op_version < GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (priv->op_version < GD_OP_VERSION_3_7_0) {
|
|
|
14f8ab |
gf_msg(this->name, GF_LOG_ERROR, 0, GD_MSG_UNSUPPORTED_VERSION,
|
|
|
14f8ab |
"Disperse volume "
|
|
|
14f8ab |
- "needs op-version 3.6.0 or higher");
|
|
|
14f8ab |
+ "needs op-version 30700 or higher");
|
|
|
14f8ab |
ret = -1;
|
|
|
14f8ab |
goto out;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
@@ -2494,7 +2494,7 @@ glusterd_op_create_volume(dict_t *dict, char **op_errstr)
|
|
|
14f8ab |
/* A bricks mount dir is required only by snapshots which were
|
|
|
14f8ab |
* introduced in gluster-3.6.0
|
|
|
14f8ab |
*/
|
|
|
14f8ab |
- if (priv->op_version >= GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (priv->op_version >= GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
brick_mount_dir = NULL;
|
|
|
14f8ab |
ret = snprintf(key, sizeof(key), "brick%d.mount_dir", i);
|
|
|
14f8ab |
ret = dict_get_strn(dict, key, ret, &brick_mount_dir);
|
|
|
14f8ab |
@@ -2703,7 +2703,7 @@ glusterd_op_start_volume(dict_t *dict, char **op_errstr)
|
|
|
14f8ab |
/* A bricks mount dir is required only by snapshots which were
|
|
|
14f8ab |
* introduced in gluster-3.6.0
|
|
|
14f8ab |
*/
|
|
|
14f8ab |
- if (conf->op_version >= GD_OP_VERSION_3_6_0) {
|
|
|
14f8ab |
+ if (conf->op_version >= GD_OP_VERSION_RHS_3_0) {
|
|
|
14f8ab |
cds_list_for_each_entry(brickinfo, &volinfo->bricks, brick_list)
|
|
|
14f8ab |
{
|
|
|
14f8ab |
brick_count++;
|
|
|
14f8ab |
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
|
|
|
14f8ab |
index dc58e11..d07fc10 100644
|
|
|
14f8ab |
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
|
|
|
14f8ab |
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
|
|
|
14f8ab |
@@ -807,7 +807,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
{.key = "cluster.subvols-per-directory",
|
|
|
14f8ab |
.voltype = "cluster/distribute",
|
|
|
14f8ab |
.option = "directory-layout-spread",
|
|
|
14f8ab |
- .op_version = 2,
|
|
|
14f8ab |
+ .op_version = 1,
|
|
|
14f8ab |
.validate_fn = validate_subvols_per_directory,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "cluster.readdir-optimize",
|
|
|
14f8ab |
@@ -817,25 +817,25 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
{.key = "cluster.rsync-hash-regex",
|
|
|
14f8ab |
.voltype = "cluster/distribute",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = 2,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "cluster.extra-hash-regex",
|
|
|
14f8ab |
.voltype = "cluster/distribute",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = 2,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "cluster.dht-xattr-name",
|
|
|
14f8ab |
.voltype = "cluster/distribute",
|
|
|
14f8ab |
.option = "xattr-name",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = 2,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "cluster.randomize-hash-range-by-gfid",
|
|
|
14f8ab |
.voltype = "cluster/distribute",
|
|
|
14f8ab |
.option = "randomize-hash-range-by-gfid",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_3_7_0,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
@@ -877,12 +877,12 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.voltype = "cluster/nufa",
|
|
|
14f8ab |
.option = "local-volume-name",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "cluster.weighted-rebalance",
|
|
|
14f8ab |
.voltype = "cluster/distribute",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_3_7_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
|
|
|
14f8ab |
/* Switch xlator options (Distribute special case) */
|
|
|
14f8ab |
@@ -890,13 +890,13 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.voltype = "cluster/distribute",
|
|
|
14f8ab |
.option = "!switch",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "cluster.switch-pattern",
|
|
|
14f8ab |
.voltype = "cluster/switch",
|
|
|
14f8ab |
.option = "pattern.switch.case",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
|
|
|
14f8ab |
/* AFR xlator options */
|
|
|
14f8ab |
@@ -1014,16 +1014,16 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "cluster.readdir-failover",
|
|
|
14f8ab |
.voltype = "cluster/replicate",
|
|
|
14f8ab |
- .op_version = 2,
|
|
|
14f8ab |
+ .op_version = 1,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "cluster.ensure-durability",
|
|
|
14f8ab |
.voltype = "cluster/replicate",
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = 2,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "cluster.consistent-metadata",
|
|
|
14f8ab |
.voltype = "cluster/replicate",
|
|
|
14f8ab |
.type = DOC,
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_7_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0_4,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "cluster.heal-wait-queue-length",
|
|
|
14f8ab |
.voltype = "cluster/replicate",
|
|
|
14f8ab |
@@ -1080,45 +1080,45 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.key = "diagnostics.brick-logger",
|
|
|
14f8ab |
.voltype = "debug/io-stats",
|
|
|
14f8ab |
.option = "!logger",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{.key = "diagnostics.client-logger",
|
|
|
14f8ab |
.voltype = "debug/io-stats",
|
|
|
14f8ab |
.option = "!logger",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "diagnostics.brick-log-format",
|
|
|
14f8ab |
.voltype = "debug/io-stats",
|
|
|
14f8ab |
.option = "!log-format",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{.key = "diagnostics.client-log-format",
|
|
|
14f8ab |
.voltype = "debug/io-stats",
|
|
|
14f8ab |
.option = "!log-format",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "diagnostics.brick-log-buf-size",
|
|
|
14f8ab |
.voltype = "debug/io-stats",
|
|
|
14f8ab |
.option = "!log-buf-size",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{.key = "diagnostics.client-log-buf-size",
|
|
|
14f8ab |
.voltype = "debug/io-stats",
|
|
|
14f8ab |
.option = "!log-buf-size",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "diagnostics.brick-log-flush-timeout",
|
|
|
14f8ab |
.voltype = "debug/io-stats",
|
|
|
14f8ab |
.option = "!log-flush-timeout",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{.key = "diagnostics.client-log-flush-timeout",
|
|
|
14f8ab |
.voltype = "debug/io-stats",
|
|
|
14f8ab |
.option = "!log-flush-timeout",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "diagnostics.stats-dump-interval",
|
|
|
14f8ab |
.voltype = "debug/io-stats",
|
|
|
14f8ab |
@@ -1203,6 +1203,10 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.voltype = "performance/io-threads",
|
|
|
14f8ab |
.option = "pass-through",
|
|
|
14f8ab |
.op_version = GD_OP_VERSION_4_1_0},
|
|
|
14f8ab |
+ {.key = "performance.least-rate-limit",
|
|
|
14f8ab |
+ .voltype = "performance/io-threads",
|
|
|
14f8ab |
+ .op_version = 1
|
|
|
14f8ab |
+ },
|
|
|
14f8ab |
|
|
|
14f8ab |
/* Other perf xlators' options */
|
|
|
14f8ab |
{.key = "performance.io-cache-pass-through",
|
|
|
14f8ab |
@@ -1237,12 +1241,12 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
{.key = "performance.nfs.flush-behind",
|
|
|
14f8ab |
.voltype = "performance/write-behind",
|
|
|
14f8ab |
.option = "flush-behind",
|
|
|
14f8ab |
- .op_version = 1,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "performance.write-behind-window-size",
|
|
|
14f8ab |
.voltype = "performance/write-behind",
|
|
|
14f8ab |
.option = "cache-size",
|
|
|
14f8ab |
- .op_version = 1,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "performance.resync-failed-syncs-after-fsync",
|
|
|
14f8ab |
@@ -1262,27 +1266,27 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
{.key = "performance.nfs.write-behind-window-size",
|
|
|
14f8ab |
.voltype = "performance/write-behind",
|
|
|
14f8ab |
.option = "cache-size",
|
|
|
14f8ab |
- .op_version = 1,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "performance.strict-o-direct",
|
|
|
14f8ab |
.voltype = "performance/write-behind",
|
|
|
14f8ab |
.option = "strict-O_DIRECT",
|
|
|
14f8ab |
- .op_version = 2,
|
|
|
14f8ab |
+ .op_version = 1,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "performance.nfs.strict-o-direct",
|
|
|
14f8ab |
.voltype = "performance/write-behind",
|
|
|
14f8ab |
.option = "strict-O_DIRECT",
|
|
|
14f8ab |
- .op_version = 2,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "performance.strict-write-ordering",
|
|
|
14f8ab |
.voltype = "performance/write-behind",
|
|
|
14f8ab |
.option = "strict-write-ordering",
|
|
|
14f8ab |
- .op_version = 2,
|
|
|
14f8ab |
+ .op_version = 1,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "performance.nfs.strict-write-ordering",
|
|
|
14f8ab |
.voltype = "performance/write-behind",
|
|
|
14f8ab |
.option = "strict-write-ordering",
|
|
|
14f8ab |
- .op_version = 2,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "performance.write-behind-trickling-writes",
|
|
|
14f8ab |
.voltype = "performance/write-behind",
|
|
|
14f8ab |
@@ -1302,12 +1306,12 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
{.key = "performance.lazy-open",
|
|
|
14f8ab |
.voltype = "performance/open-behind",
|
|
|
14f8ab |
.option = "lazy-open",
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = 2,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "performance.read-after-open",
|
|
|
14f8ab |
.voltype = "performance/open-behind",
|
|
|
14f8ab |
.option = "read-after-open",
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "performance.open-behind-pass-through",
|
|
|
14f8ab |
@@ -1389,22 +1393,22 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.voltype = "encryption/crypt",
|
|
|
14f8ab |
.option = "!feat",
|
|
|
14f8ab |
.value = "off",
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.description = "enable/disable client-side encryption for "
|
|
|
14f8ab |
"the volume.",
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT | VOLOPT_FLAG_XLATOR_OPT},
|
|
|
14f8ab |
|
|
|
14f8ab |
{.key = "encryption.master-key",
|
|
|
14f8ab |
.voltype = "encryption/crypt",
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "encryption.data-key-size",
|
|
|
14f8ab |
.voltype = "encryption/crypt",
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{.key = "encryption.block-size",
|
|
|
14f8ab |
.voltype = "encryption/crypt",
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
|
|
|
14f8ab |
/* Client xlator options */
|
|
|
14f8ab |
@@ -1431,7 +1435,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
{.key = "network.remote-dio",
|
|
|
14f8ab |
.voltype = "protocol/client",
|
|
|
14f8ab |
.option = "filter-O_DIRECT",
|
|
|
14f8ab |
- .op_version = 2,
|
|
|
14f8ab |
+ .op_version = 1,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "client.own-thread",
|
|
|
14f8ab |
@@ -1443,7 +1447,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "client.event-threads",
|
|
|
14f8ab |
.voltype = "protocol/client",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_7_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0_4,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{.key = "client.tcp-user-timeout",
|
|
|
14f8ab |
.voltype = "protocol/client",
|
|
|
14f8ab |
@@ -1501,7 +1505,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
{.key = "server.root-squash",
|
|
|
14f8ab |
.voltype = "protocol/server",
|
|
|
14f8ab |
.option = "root-squash",
|
|
|
14f8ab |
- .op_version = 2},
|
|
|
14f8ab |
+ .op_version = 1},
|
|
|
14f8ab |
{.key = "server.all-squash",
|
|
|
14f8ab |
.voltype = "protocol/server",
|
|
|
14f8ab |
.option = "all-squash",
|
|
|
14f8ab |
@@ -1509,11 +1513,11 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
{.key = "server.anonuid",
|
|
|
14f8ab |
.voltype = "protocol/server",
|
|
|
14f8ab |
.option = "anonuid",
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
{.key = "server.anongid",
|
|
|
14f8ab |
.voltype = "protocol/server",
|
|
|
14f8ab |
.option = "anongid",
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
{.key = "server.statedump-path",
|
|
|
14f8ab |
.voltype = "protocol/server",
|
|
|
14f8ab |
.option = "statedump-path",
|
|
|
14f8ab |
@@ -1522,7 +1526,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.voltype = "protocol/server",
|
|
|
14f8ab |
.option = "rpc.outstanding-rpc-limit",
|
|
|
14f8ab |
.type = GLOBAL_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{.key = "server.ssl",
|
|
|
14f8ab |
.voltype = "protocol/server",
|
|
|
14f8ab |
.value = "off",
|
|
|
14f8ab |
@@ -1540,12 +1544,12 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
"the clients that are allowed to access the server."
|
|
|
14f8ab |
"By default, all TLS authenticated clients are "
|
|
|
14f8ab |
"allowed to access the server.",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_3_7_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "server.manage-gids",
|
|
|
14f8ab |
.voltype = "protocol/server",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "server.dynamic-auth",
|
|
|
14f8ab |
@@ -1556,12 +1560,12 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.key = "client.send-gids",
|
|
|
14f8ab |
.voltype = "protocol/client",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "server.gid-timeout",
|
|
|
14f8ab |
.voltype = "protocol/server",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "server.own-thread",
|
|
|
14f8ab |
@@ -1573,7 +1577,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "server.event-threads",
|
|
|
14f8ab |
.voltype = "protocol/server",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_7_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0_4,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "server.tcp-user-timeout",
|
|
|
14f8ab |
@@ -1643,13 +1647,13 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.key = SSL_CERT_DEPTH_OPT,
|
|
|
14f8ab |
.voltype = "rpc-transport/socket",
|
|
|
14f8ab |
.option = "!ssl-cert-depth",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_3_7_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = SSL_CIPHER_LIST_OPT,
|
|
|
14f8ab |
.voltype = "rpc-transport/socket",
|
|
|
14f8ab |
.option = "!ssl-cipher-list",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_3_7_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = SSL_DH_PARAM_OPT,
|
|
|
14f8ab |
@@ -1690,8 +1694,8 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
{.key = "performance.readdir-ahead",
|
|
|
14f8ab |
.voltype = "performance/readdir-ahead",
|
|
|
14f8ab |
.option = "!perf",
|
|
|
14f8ab |
- .value = "on",
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .value = "off",
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.description = "enable/disable readdir-ahead translator in the volume.",
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT | VOLOPT_FLAG_XLATOR_OPT},
|
|
|
14f8ab |
{.key = "performance.io-cache",
|
|
|
14f8ab |
@@ -1804,7 +1808,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
/* Feature translators */
|
|
|
14f8ab |
{.key = "features.uss",
|
|
|
14f8ab |
.voltype = "features/snapview-server",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.value = "off",
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT | VOLOPT_FLAG_XLATOR_OPT,
|
|
|
14f8ab |
.validate_fn = validate_uss,
|
|
|
14f8ab |
@@ -1813,7 +1817,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
|
|
|
14f8ab |
{.key = "features.snapshot-directory",
|
|
|
14f8ab |
.voltype = "features/snapview-client",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.value = ".snaps",
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT | VOLOPT_FLAG_XLATOR_OPT,
|
|
|
14f8ab |
.validate_fn = validate_uss_dir,
|
|
|
14f8ab |
@@ -1823,7 +1827,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
|
|
|
14f8ab |
{.key = "features.show-snapshot-directory",
|
|
|
14f8ab |
.voltype = "features/snapview-client",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.value = "off",
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT | VOLOPT_FLAG_XLATOR_OPT,
|
|
|
14f8ab |
.description = "show entry point in readdir output of "
|
|
|
14f8ab |
@@ -1847,30 +1851,30 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.voltype = "features/cdc",
|
|
|
14f8ab |
.option = "!feat",
|
|
|
14f8ab |
.value = "off",
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
.description = "enable/disable network compression translator",
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_XLATOR_OPT},
|
|
|
14f8ab |
{.key = "network.compression.window-size",
|
|
|
14f8ab |
.voltype = "features/cdc",
|
|
|
14f8ab |
.option = "window-size",
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
{.key = "network.compression.mem-level",
|
|
|
14f8ab |
.voltype = "features/cdc",
|
|
|
14f8ab |
.option = "mem-level",
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
{.key = "network.compression.min-size",
|
|
|
14f8ab |
.voltype = "features/cdc",
|
|
|
14f8ab |
.option = "min-size",
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
{.key = "network.compression.compression-level",
|
|
|
14f8ab |
.voltype = "features/cdc",
|
|
|
14f8ab |
.option = "compression-level",
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
{.key = "network.compression.debug",
|
|
|
14f8ab |
.voltype = "features/cdc",
|
|
|
14f8ab |
.option = "debug",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
#endif
|
|
|
14f8ab |
|
|
|
14f8ab |
/* Quota xlator options */
|
|
|
14f8ab |
@@ -1886,28 +1890,28 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.voltype = "features/quota",
|
|
|
14f8ab |
.option = "default-soft-limit",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = 2,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "features.soft-timeout",
|
|
|
14f8ab |
.voltype = "features/quota",
|
|
|
14f8ab |
.option = "soft-timeout",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = 2,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "features.hard-timeout",
|
|
|
14f8ab |
.voltype = "features/quota",
|
|
|
14f8ab |
.option = "hard-timeout",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = 2,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "features.alert-time",
|
|
|
14f8ab |
.voltype = "features/quota",
|
|
|
14f8ab |
.option = "alert-time",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3,
|
|
|
14f8ab |
+ .op_version = 2,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "features.quota-deem-statfs",
|
|
|
14f8ab |
@@ -2009,22 +2013,22 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.voltype = "debug/error-gen",
|
|
|
14f8ab |
.option = "failure",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{.key = "debug.error-number",
|
|
|
14f8ab |
.voltype = "debug/error-gen",
|
|
|
14f8ab |
.option = "error-no",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{.key = "debug.random-failure",
|
|
|
14f8ab |
.voltype = "debug/error-gen",
|
|
|
14f8ab |
.option = "random-failure",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{.key = "debug.error-fops",
|
|
|
14f8ab |
.voltype = "debug/error-gen",
|
|
|
14f8ab |
.option = "enable",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
|
|
|
14f8ab |
/* NFS xlator options */
|
|
|
14f8ab |
{.key = "nfs.enable-ino32",
|
|
|
14f8ab |
@@ -2066,7 +2070,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.voltype = "nfs/server",
|
|
|
14f8ab |
.option = "rpc.outstanding-rpc-limit",
|
|
|
14f8ab |
.type = GLOBAL_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{.key = "nfs.port",
|
|
|
14f8ab |
.voltype = "nfs/server",
|
|
|
14f8ab |
.option = "nfs.port",
|
|
|
14f8ab |
@@ -2128,7 +2132,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.voltype = "nfs/server",
|
|
|
14f8ab |
.option = "nfs.acl",
|
|
|
14f8ab |
.type = GLOBAL_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{.key = "nfs.mount-udp",
|
|
|
14f8ab |
.voltype = "nfs/server",
|
|
|
14f8ab |
.option = "nfs.mount-udp",
|
|
|
14f8ab |
@@ -2144,14 +2148,14 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.voltype = "nfs/server",
|
|
|
14f8ab |
.option = "nfs.rpc-statd",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "nfs.log-level",
|
|
|
14f8ab |
.voltype = "nfs/server",
|
|
|
14f8ab |
.option = "nfs.log-level",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{.key = "nfs.server-aux-gids",
|
|
|
14f8ab |
.voltype = "nfs/server",
|
|
|
14f8ab |
@@ -2162,27 +2166,27 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.voltype = "nfs/server",
|
|
|
14f8ab |
.option = "nfs.drc",
|
|
|
14f8ab |
.type = GLOBAL_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 1},
|
|
|
14f8ab |
{.key = "nfs.drc-size",
|
|
|
14f8ab |
.voltype = "nfs/server",
|
|
|
14f8ab |
.option = "nfs.drc-size",
|
|
|
14f8ab |
.type = GLOBAL_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 1},
|
|
|
14f8ab |
{.key = "nfs.read-size",
|
|
|
14f8ab |
.voltype = "nfs/server",
|
|
|
14f8ab |
.option = "nfs3.read-size",
|
|
|
14f8ab |
.type = GLOBAL_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{.key = "nfs.write-size",
|
|
|
14f8ab |
.voltype = "nfs/server",
|
|
|
14f8ab |
.option = "nfs3.write-size",
|
|
|
14f8ab |
.type = GLOBAL_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{.key = "nfs.readdir-size",
|
|
|
14f8ab |
.voltype = "nfs/server",
|
|
|
14f8ab |
.option = "nfs3.readdir-size",
|
|
|
14f8ab |
.type = GLOBAL_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{.key = "nfs.rdirplus",
|
|
|
14f8ab |
.voltype = "nfs/server",
|
|
|
14f8ab |
.option = "nfs.rdirplus",
|
|
|
14f8ab |
@@ -2219,7 +2223,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
{.key = "features.read-only",
|
|
|
14f8ab |
.voltype = "features/read-only",
|
|
|
14f8ab |
.option = "read-only",
|
|
|
14f8ab |
- .op_version = 1,
|
|
|
14f8ab |
+ .op_version = 2,
|
|
|
14f8ab |
.flags = VOLOPT_FLAG_CLIENT_OPT | VOLOPT_FLAG_XLATOR_OPT},
|
|
|
14f8ab |
{.key = "features.worm",
|
|
|
14f8ab |
.voltype = "features/worm",
|
|
|
14f8ab |
@@ -2266,14 +2270,14 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
{.key = "storage.linux-aio", .voltype = "storage/posix", .op_version = 1},
|
|
|
14f8ab |
{.key = "storage.batch-fsync-mode",
|
|
|
14f8ab |
.voltype = "storage/posix",
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{.key = "storage.batch-fsync-delay-usec",
|
|
|
14f8ab |
.voltype = "storage/posix",
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "storage.xattr-user-namespace-mode",
|
|
|
14f8ab |
.voltype = "storage/posix",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{.key = "storage.owner-uid",
|
|
|
14f8ab |
.voltype = "storage/posix",
|
|
|
14f8ab |
@@ -2285,15 +2289,15 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.op_version = 1},
|
|
|
14f8ab |
{.key = "storage.node-uuid-pathinfo",
|
|
|
14f8ab |
.voltype = "storage/posix",
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{.key = "storage.health-check-interval",
|
|
|
14f8ab |
.voltype = "storage/posix",
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.option = "update-link-count-parent",
|
|
|
14f8ab |
.key = "storage.build-pgfid",
|
|
|
14f8ab |
.voltype = "storage/posix",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.option = "gfid2path",
|
|
|
14f8ab |
@@ -2363,7 +2367,9 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.voltype = "storage/posix",
|
|
|
14f8ab |
.op_version = GD_OP_VERSION_4_1_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
- {.key = "storage.bd-aio", .voltype = "storage/bd", .op_version = 3},
|
|
|
14f8ab |
+ {.key = "storage.bd-aio",
|
|
|
14f8ab |
+ .voltype = "storage/bd",
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
{.key = "config.memory-accounting",
|
|
|
14f8ab |
.voltype = "mgmt/glusterd",
|
|
|
14f8ab |
.option = "!config",
|
|
|
14f8ab |
@@ -2385,37 +2391,37 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
{.key = GLUSTERD_QUORUM_TYPE_KEY,
|
|
|
14f8ab |
.voltype = "mgmt/glusterd",
|
|
|
14f8ab |
.value = "off",
|
|
|
14f8ab |
- .op_version = 2},
|
|
|
14f8ab |
+ .op_version = 1},
|
|
|
14f8ab |
{.key = GLUSTERD_QUORUM_RATIO_KEY,
|
|
|
14f8ab |
.voltype = "mgmt/glusterd",
|
|
|
14f8ab |
.value = "0",
|
|
|
14f8ab |
- .op_version = 2},
|
|
|
14f8ab |
+ .op_version = 1},
|
|
|
14f8ab |
/* changelog translator - global tunables */
|
|
|
14f8ab |
{.key = "changelog.changelog",
|
|
|
14f8ab |
.voltype = "features/changelog",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{.key = "changelog.changelog-dir",
|
|
|
14f8ab |
.voltype = "features/changelog",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{.key = "changelog.encoding",
|
|
|
14f8ab |
.voltype = "features/changelog",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{.key = "changelog.rollover-time",
|
|
|
14f8ab |
.voltype = "features/changelog",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{.key = "changelog.fsync-interval",
|
|
|
14f8ab |
.voltype = "features/changelog",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = 3},
|
|
|
14f8ab |
+ .op_version = 2},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "changelog.changelog-barrier-timeout",
|
|
|
14f8ab |
.voltype = "features/changelog",
|
|
|
14f8ab |
.value = BARRIER_TIMEOUT,
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{.key = "changelog.capture-del-path",
|
|
|
14f8ab |
.voltype = "features/changelog",
|
|
|
14f8ab |
@@ -2426,18 +2432,18 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
14f8ab |
.voltype = "features/barrier",
|
|
|
14f8ab |
.value = "disable",
|
|
|
14f8ab |
.type = NO_DOC,
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_7_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = "features.barrier-timeout",
|
|
|
14f8ab |
.voltype = "features/barrier",
|
|
|
14f8ab |
.value = BARRIER_TIMEOUT,
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = GLUSTERD_GLOBAL_OP_VERSION_KEY,
|
|
|
14f8ab |
.voltype = "mgmt/glusterd",
|
|
|
14f8ab |
- .op_version = GD_OP_VERSION_3_6_0,
|
|
|
14f8ab |
+ .op_version = GD_OP_VERSION_RHS_3_0,
|
|
|
14f8ab |
},
|
|
|
14f8ab |
{
|
|
|
14f8ab |
.key = GLUSTERD_MAX_OP_VERSION_KEY,
|
|
|
14f8ab |
diff --git a/xlators/protocol/client/src/client.c b/xlators/protocol/client/src/client.c
|
|
|
14f8ab |
index c8e84f6..dea6c28 100644
|
|
|
14f8ab |
--- a/xlators/protocol/client/src/client.c
|
|
|
14f8ab |
+++ b/xlators/protocol/client/src/client.c
|
|
|
14f8ab |
@@ -3002,7 +3002,7 @@ struct volume_options options[] = {
|
|
|
14f8ab |
{.key = {"send-gids"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_BOOL,
|
|
|
14f8ab |
.default_value = "on",
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE},
|
|
|
14f8ab |
{.key = {"event-threads"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_INT,
|
|
|
14f8ab |
@@ -3013,7 +3013,7 @@ struct volume_options options[] = {
|
|
|
14f8ab |
"in parallel. Larger values would help process"
|
|
|
14f8ab |
" responses faster, depending on available processing"
|
|
|
14f8ab |
" power. Range 1-32 threads.",
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_7_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC},
|
|
|
14f8ab |
{.key = {NULL}},
|
|
|
14f8ab |
};
|
|
|
14f8ab |
diff --git a/xlators/protocol/server/src/server.c b/xlators/protocol/server/src/server.c
|
|
|
14f8ab |
index b4b447b..6ae63ba 100644
|
|
|
14f8ab |
--- a/xlators/protocol/server/src/server.c
|
|
|
14f8ab |
+++ b/xlators/protocol/server/src/server.c
|
|
|
14f8ab |
@@ -1854,13 +1854,13 @@ struct volume_options server_options[] = {
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_BOOL,
|
|
|
14f8ab |
.default_value = "off",
|
|
|
14f8ab |
.description = "Resolve groups on the server-side.",
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC},
|
|
|
14f8ab |
{.key = {"gid-timeout"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_INT,
|
|
|
14f8ab |
.default_value = "300",
|
|
|
14f8ab |
.description = "Timeout in seconds for the cached groups to expire.",
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC},
|
|
|
14f8ab |
{.key = {"event-threads"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_INT,
|
|
|
14f8ab |
@@ -1871,7 +1871,7 @@ struct volume_options server_options[] = {
|
|
|
14f8ab |
"in parallel. Larger values would help process"
|
|
|
14f8ab |
" responses faster, depending on available processing"
|
|
|
14f8ab |
" power.",
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_7_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC},
|
|
|
14f8ab |
{.key = {"dynamic-auth"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_BOOL,
|
|
|
14f8ab |
diff --git a/xlators/storage/posix/src/posix-common.c b/xlators/storage/posix/src/posix-common.c
|
|
|
14f8ab |
index f0d8e3f..ed82e35 100644
|
|
|
14f8ab |
--- a/xlators/storage/posix/src/posix-common.c
|
|
|
14f8ab |
+++ b/xlators/storage/posix/src/posix-common.c
|
|
|
14f8ab |
@@ -1243,7 +1243,7 @@ struct volume_options posix_options[] = {
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_BOOL,
|
|
|
14f8ab |
.default_value = "off",
|
|
|
14f8ab |
.description = "Enable placeholders for gfid to path conversion",
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC},
|
|
|
14f8ab |
{.key = {"gfid2path"},
|
|
|
14f8ab |
.type = GF_OPTION_TYPE_BOOL,
|
|
|
14f8ab |
@@ -1279,7 +1279,7 @@ struct volume_options posix_options[] = {
|
|
|
14f8ab |
" The raw filesystem will not be compatible with OS X Finder.\n"
|
|
|
14f8ab |
"\t- Strip: Will strip the user namespace before setting. The raw "
|
|
|
14f8ab |
"filesystem will work in OS X.\n",
|
|
|
14f8ab |
- .op_version = {GD_OP_VERSION_3_6_0},
|
|
|
14f8ab |
+ .op_version = {GD_OP_VERSION_RHS_3_0},
|
|
|
14f8ab |
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC},
|
|
|
14f8ab |
#endif
|
|
|
14f8ab |
{
|
|
|
14f8ab |
--
|
|
|
14f8ab |
1.8.3.1
|
|
|
14f8ab |
|