Whamcloud - gitweb
LU-14767 utils: mkfs.lustre allow lazy_itable_init=1
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 16 Jun 2021 20:48:33 +0000 (14:48 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 15 Sep 2021 20:38:19 +0000 (20:38 +0000)
commita417317edcf4a865c49970d0c6dce8b4999fe2c4
tree064c98c17f60476dcd91b7011dc20b67cdba53b0
parent00cbe97f4f8b3227d27b4ce279178b27a595896e
LU-14767 utils: mkfs.lustre allow lazy_itable_init=1

When "lazy_itable_init=0" was added to the mke2fs options the call
to append_unique() to see whether "lazy_itable_init" was already
listed in the mke2fs options was incorrect. It checks to see if
"lazy_itable_init=0" is already present in the options, and doesn't
match "lazy_itable_init=1" if it was specified on the command-line.

Separate the key and value passed to append_unique() so that it can
check if any form of the key is present in the existing options.

Lustre-change: https://review.whamcloud.com/44019
Lustre-commit: a81c093a935c62b9e4586ae930aab7439948d538

Test-Parameters: trivial testlist=conf-sanity
Fixes: 701cc249594e ("LU-13533 utils: ext4lazyinit should be disabled")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ic7a6dbb81f004dd35f0f1c5f5ddec0fb363ebbe5
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Artem Blagodarenko <artem.blagodarenko@hpe.com>
Reviewed-on: https://review.whamcloud.com/44920
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/utils/libmount_utils_ldiskfs.c