diff options
author | Brian Behlendorf <[email protected]> | 2021-02-17 08:14:51 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-17 08:14:51 -0800 |
commit | 35ec51796f0aa8d4fe322b48e7d1d5a65e38a4ce (patch) | |
tree | f1ff450ebb58b49d566969bfa228835ad8a3bd7b /cmd | |
parent | aef1830f932c3499cb5430b4c1bd9d21f87808f3 (diff) |
FreeBSD: disable edonr in zfs_mod_supported_feature()
Rather than conditionally compiling out the edonr code for FreeBSD
update zfs_mod_supported_feature() to indicate this feature is
unsupported. This ensures that all spa features are defined on
every platform, even if they are not supported.
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #11605
Issue #11468
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/zpool/zpool_main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c index 50adc0add..eef12d97f 100644 --- a/cmd/zpool/zpool_main.c +++ b/cmd/zpool/zpool_main.c @@ -8629,6 +8629,10 @@ upgrade_enable_all(zpool_handle_t *zhp, int *countp) for (i = 0; i < SPA_FEATURES; i++) { const char *fname = spa_feature_table[i].fi_uname; const char *fguid = spa_feature_table[i].fi_guid; + + if (!spa_feature_table[i].fi_zfs_mod_supported) + continue; + if (!nvlist_exists(enabled, fguid)) { char *propname; verify(-1 != asprintf(&propname, "feature@%s", fname)); @@ -8759,6 +8763,10 @@ upgrade_list_disabled_cb(zpool_handle_t *zhp, void *arg) for (i = 0; i < SPA_FEATURES; i++) { const char *fguid = spa_feature_table[i].fi_guid; const char *fname = spa_feature_table[i].fi_uname; + + if (!spa_feature_table[i].fi_zfs_mod_supported) + continue; + if (!nvlist_exists(enabled, fguid)) { if (cbp->cb_first) { (void) printf(gettext("\nSome " |