zfs_keys_nextboot array is missing ZPOOL_CONFIG_POOL_GUID and ZPOOL_CONFIG_GUID

As we do check the incomint nvlist, we either need to list all possible
keys or use wildcard.

PR:		248462
Reported by:	larafercue@gmail.com
Sponsored by:	Netflix, Klara Inc.
This commit is contained in:
Toomas Soome 2020-08-05 14:08:44 +00:00
parent c085d2ea97
commit 491ceb65ec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363910

View File

@ -3656,7 +3656,9 @@ zfs_ioc_log_history(const char *unused, nvlist_t *innvl, nvlist_t *outnvl)
#ifdef __FreeBSD__
static const zfs_ioc_key_t zfs_keys_nextboot[] = {
{"command", DATA_TYPE_STRING, 0},
{"command", DATA_TYPE_STRING, 0},
{ZPOOL_CONFIG_POOL_GUID, DATA_TYPE_UINT64, 0},
{ZPOOL_CONFIG_GUID, DATA_TYPE_UINT64, 0}
};
static int