diff options
author | Martin Matuška <[email protected]> | 2021-02-28 02:16:02 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-27 17:16:02 -0800 |
commit | 03ef8f09e1d2854afe1436b897b81bac872f1be7 (patch) | |
tree | ddada2d3f845bbe4db8c58bf8dbf5460189e0c62 /cmd/ztest | |
parent | 778fa36ee79bc8887f3b4bb2c3bb09784a3fb33c (diff) |
Add missing checks for unsupported features
After 35ec517 it has become possible to import ZFS pools witn an
active org.illumos:edonr feature on FreeBSD, leading to a panic.
In addition, "zpool status" reported all pools without edonr
as upgradable and "zpool upgrade -v" reported edonr in the list
of upgradable features.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Martin Matuska <[email protected]>
Closes #11653
Diffstat (limited to 'cmd/ztest')
-rw-r--r-- | cmd/ztest/ztest.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index cfa1290d7..1a0302807 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -7592,6 +7592,9 @@ ztest_init(ztest_shared_t *zs) for (i = 0; i < SPA_FEATURES; i++) { char *buf; + if (!spa_feature_table[i].fi_zfs_mod_supported) + continue; + /* * 75% chance of using the log space map feature. We want ztest * to exercise both the code paths that use the log space map |