nvme/perf: Use g_metacfg_pract_flag to bring PRACT setting

g_metacfg_prchk_flags had been used to pring PRACT setting. This
didn't cause any issue but will lead to misread.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I2f6c48b12ffa511afa2663d31dc9467cec980c9c
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/468017
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Shuhei Matsumoto 2019-09-11 14:23:36 +09:00 committed by Ben Walker
parent a766dd00f4
commit 062a5503ae

View File

@ -1499,7 +1499,7 @@ parse_metadata(const char *metacfg_str)
if (strcmp(key, "PRACT") == 0) {
if (*val == '1') {
g_metacfg_prchk_flags = SPDK_NVME_IO_FLAGS_PRACT;
g_metacfg_pract_flag = SPDK_NVME_IO_FLAGS_PRACT;
}
} else if (strcmp(key, "PRCHK") == 0) {
if (strstr(val, "GUARD") != NULL) {