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