HomeFreeBSD

ZTS: Fix skipping over comment lines in zpool_create.shlib

Description

ZTS: Fix skipping over comment lines in zpool_create.shlib

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

Details

Provenance
Umer Saleem <usaleem@ixsystems.com>Authored on Sep 20 2024, 6:06 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 21 2024, 5:29 PM
Parents
rG80645d658260: FreeBSD: restore zfs_znode_update_vfs()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGaeb79f2b292f: ZTS: Fix skipping over comment lines in zpool_create.shlib (authored by Umer Saleem <usaleem@ixsystems.com>).Sep 21 2024, 5:29 PM