In zpool_create.shlib, check_feature_set iterates over all features
mentioned in provided compatibility file to check if only those
features are enabled on the pool.
This commit fixes skipping over comment lines correctly. Otherwise,
the test case fails as comment lines are also treated as feature names
by check_feature_set function.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
Closes #15909
while read line; do
typeset flag=1
- if [[ "$line" == "#*" ]]; then
- continue
- fi
+ # Skip comments
+ [[ $line = \#* ]] && continue
for set in "$@"; do
if ! grep -q "$line" $ZPOOL_COMPAT_DIR/$set; then