Home | History | Annotate | Download | only in common

Lines Matching defs:nvl

207 	nvlist_t *nvl;
209 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0) {
220 if (nvlist_add_nvlist(nvl, nvpair_name(elem), propval) != 0) {
221 nvlist_free(nvl);
227 return (nvl);
863 zfs_valid_proplist(libzfs_handle_t *hdl, zfs_type_t type, nvlist_t *nvl,
885 while ((elem = nvlist_next_nvpair(nvl, elem)) != NULL) {
1386 zfs_add_synthetic_resv(zfs_handle_t *zhp, nvlist_t *nvl)
1409 old_reservation) || nvlist_exists(nvl,
1414 if (nvlist_lookup_uint64(nvl, zfs_prop_to_name(ZFS_PROP_VOLSIZE),
1422 if (nvlist_add_uint64(nvl, zfs_prop_to_name(resv_prop),
1537 nvlist_t *nvl = NULL;
1543 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0 ||
1544 nvlist_add_string(nvl, propname, propval) != 0) {
1549 ret = zfs_prop_set_list(zhp, nvl);
1552 nvlist_free(nvl);
1571 nvlist_t *nvl;
1579 if ((nvl = zfs_valid_proplist(hdl, zhp->zfs_type, props,
1588 for (nvpair_t *elem = nvlist_next_nvpair(nvl, NULL);
1590 elem = nvlist_next_nvpair(nvl, elem)) {
1592 (added_resv = zfs_add_synthetic_resv(zhp, nvl)) == -1) {
1601 for (nvpair_t *elem = nvlist_next_nvpair(nvl, NULL);
1603 elem = nvlist_next_nvpair(nvl, elem))
1609 for (nvpair_t *elem = nvlist_next_nvpair(nvl, NULL);
1611 elem = nvlist_next_nvpair(nvl, elem)) {
1666 if ((ret = zcmd_write_src_nvlist(hdl, &zc, nvl)) != 0 ||
1677 for (nvpair_t *elem = nvlist_next_nvpair(nvl, NULL);
1679 elem = nvlist_next_nvpair(nvl, elem)) {
1689 nvlist_free(nvl);
1690 nvl = NULL;
1693 if (nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0) != 0)
1695 if (nvlist_add_uint64(nvl,
1699 if (zcmd_write_src_nvlist(hdl, &zc, nvl) != 0)
1721 nvlist_free(nvl);
3409 nvlist_t *nvl;
3424 verify(nvlist_add_boolean(dd->nvl, name) == 0);
3441 verify(nvlist_alloc(&dd.nvl, NV_UNIQUE_NAME, 0) == 0);
3444 if (nvlist_empty(dd.nvl)) {
3449 ret = zfs_destroy_snaps_nvl(zhp->zfs_hdl, dd.nvl, defer);
3451 nvlist_free(dd.nvl);
4422 nvlist_t *nvl;
4440 fnvlist_add_string(ha->nvl, name, ha->tag);
4455 ha.nvl = fnvlist_alloc();
4461 if (nvlist_empty(ha.nvl)) {
4464 fnvlist_free(ha.nvl);
4474 ret = zfs_hold_nvl(zhp, cleanup_fd, ha.nvl);
4475 fnvlist_free(ha.nvl);
4566 fnvlist_add_nvlist(ha->nvl, name, torelease);
4587 ha.nvl = fnvlist_alloc();
4594 if (nvlist_empty(ha.nvl)) {
4595 fnvlist_free(ha.nvl);
4609 ret = lzc_release(ha.nvl, &errors);
4610 fnvlist_free(ha.nvl);
4658 zfs_get_fsacl(zfs_handle_t *zhp, nvlist_t **nvl)
4710 int rc = nvlist_unpack(nvbuf, zc.zc_nvlist_dst_size, nvl, 0);
4725 zfs_set_fsacl(zfs_handle_t *zhp, boolean_t un, nvlist_t *nvl)
4737 err = nvlist_size(nvl, &nvsz, NV_ENCODE_NATIVE);
4742 err = nvlist_pack(nvl, &nvbuf, &nvsz, NV_ENCODE_NATIVE, 0);
4779 zfs_get_holds(zfs_handle_t *zhp, nvlist_t **nvl)
4784 err = lzc_get_holds(zhp->zfs_name, nvl);