Lines Matching refs:nvl
888 zfs_ioctl_compat_get_nvlist(uint64_t nvl, size_t size, int iflag,
903 if ((error = ddi_copyin((void *)(uintptr_t)nvl, packed, size,
909 packed = (void *)(uintptr_t)nvl;
926 zfs_ioctl_compat_put_nvlist(zfs_cmd_t *zc, nvlist_t *nvl)
932 VERIFY(nvlist_size(nvl, &size, NV_ENCODE_NATIVE) == 0);
936 VERIFY(nvlist_pack(nvl, &packed, &size, NV_ENCODE_NATIVE,
945 VERIFY(nvlist_pack(nvl, &packed, &size, NV_ENCODE_NATIVE,
954 zfs_ioctl_compat_fix_stats_nvlist(nvlist_t *nvl)
961 if (nvlist_lookup_nvlist_array(nvl, ZPOOL_CONFIG_CHILDREN,
968 if (nvlist_lookup_nvlist(nvl, ZPOOL_CONFIG_VDEV_TREE,
972 if ((nvlist_lookup_uint64_array(nvl, ZPOOL_CONFIG_VDEV_STATS,
974 if ((nvlist_lookup_uint64_array(nvl, "stats",
978 nvlist_add_uint64_array(nvl,
986 nvlist_remove(nvl, ZPOOL_CONFIG_VDEV_STATS,
988 nvlist_remove(nvl, "stats",
1193 nvlist_t *nvl, *tmpnvl, *hnvl;
1205 nvl = fnvlist_alloc();
1206 fnvlist_add_int32(nvl, "type", zc->zc_objset_type);
1208 fnvlist_add_nvlist(nvl, "props", innvl);
1211 return (nvl);
1214 nvl = fnvlist_alloc();
1215 fnvlist_add_string(nvl, "origin", zc->zc_value);
1217 fnvlist_add_nvlist(nvl, "props", innvl);
1220 return (nvl);
1225 nvl = fnvlist_alloc();
1226 fnvlist_add_nvlist(nvl, "props", innvl);
1235 fnvlist_add_nvlist(nvl, "snaps", tmpnvl);
1240 return (nvl);
1243 nvl = fnvlist_alloc();
1244 fnvlist_add_string(nvl, "firstsnap", zc->zc_value);
1247 return (nvl);
1252 nvl = fnvlist_alloc();
1254 fnvlist_add_nvlist(nvl, "snaps", innvl);
1266 fnvlist_add_nvlist(nvl, "snaps",
1275 return (nvl);
1278 nvl = fnvlist_alloc();
1281 fnvlist_add_int32(nvl, "cleanup_fd",
1301 fnvlist_add_nvlist(nvl, "holds", tmpnvl);
1307 return (nvl);
1310 nvl = fnvlist_alloc();
1321 fnvlist_add_nvlist(nvl,
1330 fnvlist_add_nvlist(nvl, snapname, tmpnvl);
1338 return (nvl);