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