|
|
14f8ab |
From c001b60047c73e07f42ee858dd8ae19136ecd61b Mon Sep 17 00:00:00 2001
|
|
|
14f8ab |
From: Ravishankar N <ravishankar@redhat.com>
|
|
|
14f8ab |
Date: Thu, 6 Jun 2019 13:19:29 +0530
|
|
|
14f8ab |
Subject: [PATCH 173/178] glusterd: store fips-mode-rchecksum option in the
|
|
|
14f8ab |
info file
|
|
|
14f8ab |
|
|
|
14f8ab |
commit 146e4b45d0ce906ae50fd6941a1efafd133897ea enabled
|
|
|
14f8ab |
storage.fips-mode-rchecksum option for all new volumes with op-version
|
|
|
14f8ab |
>=GD_OP_VERSION_7_0 but `gluster vol get $volname
|
|
|
14f8ab |
storage.fips-mode-rchecksum` was displaying it as 'off'. This patch fixes it.
|
|
|
14f8ab |
|
|
|
14f8ab |
>upstream patch link : https://review.gluster.org/#/c/glusterfs/+/22830/
|
|
|
14f8ab |
|
|
|
14f8ab |
>fixes: bz#1717782
|
|
|
14f8ab |
>Change-Id: Ie09f89838893c5776a3f60569dfe8d409d1494dd
|
|
|
14f8ab |
>Signed-off-by: Ravishankar N <ravishankar@redhat.com>
|
|
|
14f8ab |
|
|
|
14f8ab |
BUG: 1715407
|
|
|
14f8ab |
Change-Id: Ie09f89838893c5776a3f60569dfe8d409d1494dd
|
|
|
14f8ab |
Signed-off-by: Ravishankar N <ravishankar@redhat.com>
|
|
|
14f8ab |
Reviewed-on: https://code.engineering.redhat.com/gerrit/172799
|
|
|
14f8ab |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
14f8ab |
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
14f8ab |
---
|
|
|
14f8ab |
xlators/mgmt/glusterd/src/glusterd-utils.c | 11 +++++++++++
|
|
|
14f8ab |
1 file changed, 11 insertions(+)
|
|
|
14f8ab |
|
|
|
14f8ab |
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
|
|
|
14f8ab |
index 2bc4836..7768b8e 100644
|
|
|
14f8ab |
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
|
|
|
14f8ab |
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
|
|
|
14f8ab |
@@ -13124,6 +13124,17 @@ glusterd_enable_default_options(glusterd_volinfo_t *volinfo, char *option)
|
|
|
14f8ab |
}
|
|
|
14f8ab |
}
|
|
|
14f8ab |
}
|
|
|
14f8ab |
+ if (conf->op_version >= GD_OP_VERSION_7_0) {
|
|
|
14f8ab |
+ ret = dict_set_dynstr_with_alloc(volinfo->dict,
|
|
|
14f8ab |
+ "storage.fips-mode-rchecksum", "on");
|
|
|
14f8ab |
+ if (ret) {
|
|
|
14f8ab |
+ gf_msg(this->name, GF_LOG_ERROR, errno, GD_MSG_DICT_SET_FAILED,
|
|
|
14f8ab |
+ "Failed to set option 'storage.fips-mode-rchecksum' "
|
|
|
14f8ab |
+ "on volume %s",
|
|
|
14f8ab |
+ volinfo->volname);
|
|
|
14f8ab |
+ goto out;
|
|
|
14f8ab |
+ }
|
|
|
14f8ab |
+ }
|
|
|
14f8ab |
out:
|
|
|
14f8ab |
return ret;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
--
|
|
|
14f8ab |
1.8.3.1
|
|
|
14f8ab |
|