mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
Fix zap_lookup() in feature_is_supported().
The length (number of integers) argument passed to zap_lookup was wrong; likely as a result of performing stack-reduction on the function. Signed-off-by: Tim Chase <tim@chase2k.com> Signed-off-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #2141
This commit is contained in:
parent
e78b6da3d0
commit
13a7ba1c2c
@ -204,7 +204,7 @@ feature_is_supported(objset_t *os, uint64_t obj, uint64_t desc_obj,
|
||||
char *desc = "";
|
||||
|
||||
if (zap_lookup(os, desc_obj, za->za_name,
|
||||
1, sizeof (buf), buf) == 0)
|
||||
1, MAXPATHLEN, buf) == 0)
|
||||
desc = buf;
|
||||
|
||||
VERIFY(nvlist_add_string(unsup_feat,
|
||||
|
Loading…
Reference in New Issue
Block a user