Increase buffer size for nvlist for large configurations

It's still not clear to me why the default value here is large
enough Solaris.  I hit this limit again when setting up 120 SATA
drives configured as 15 raidz2 groups each containing 8 drives.
We expect to go bigger so we may just want to spend a little
time and figure out how to make this all dynamic.
This commit is contained in:
Brian Behlendorf 2009-07-24 08:53:18 -07:00
parent e320858042
commit 1b4dfb80fb
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ namespace_reload(libzfs_handle_t *hdl)
return (no_memory(hdl)); return (no_memory(hdl));
} }
if (zcmd_alloc_dst_nvlist(hdl, &zc, 32768) != 0) if (zcmd_alloc_dst_nvlist(hdl, &zc, 0) != 0)
return (-1); return (-1);
for (;;) { for (;;) {

View File

@ -681,7 +681,7 @@ int
zcmd_alloc_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, size_t len) zcmd_alloc_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, size_t len)
{ {
if (len == 0) if (len == 0)
len = 2048; len = 128*1024;
zc->zc_nvlist_dst_size = len; zc->zc_nvlist_dst_size = len;
if ((zc->zc_nvlist_dst = (uint64_t)(uintptr_t) if ((zc->zc_nvlist_dst = (uint64_t)(uintptr_t)
zfs_alloc(hdl, zc->zc_nvlist_dst_size)) == NULL) zfs_alloc(hdl, zc->zc_nvlist_dst_size)) == NULL)