]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zfs: add missing checks for unsupported features
authorMartin Matuska <mm@FreeBSD.org>
Fri, 26 Feb 2021 21:52:41 +0000 (22:52 +0100)
committerMartin Matuska <mm@FreeBSD.org>
Wed, 10 Mar 2021 01:57:03 +0000 (02:57 +0100)
commitee36544bd8113595dc15034cae2dfa83a7014751
tree29176184f9aa650a53399ff579a25d841d851b2d
parent16f5a4ea910964e6c8410ecb079f7ee10ae6f63c
zfs: add missing checks for unsupported features

After the merge of OpenZFS master-9312e0fd1 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" lists edonr in the list of upgradable features.

This is an accepted but not yet included bugfix by upstream.

Obtained from: https://github.com/openzfs/zfs/pull/11653
Differential Revision: https://reviews.freebsd.org/D28935
Reported by: garga (on freebsd-current@)
Reviewed by: freqlabs

(cherry picked from commit c170aa9f37e4ce9338a0f26e3e983f7123ea8c1a)
sys/contrib/openzfs/cmd/zpool/zpool_main.c
sys/contrib/openzfs/cmd/ztest/ztest.c
sys/contrib/openzfs/lib/libzfs/libzfs_status.c
sys/contrib/openzfs/module/zcommon/zfeature_common.c