Lines Matching defs:zc
111 zfs_cmd_t zc = { 0 };
131 if (zcmd_alloc_dst_nvlist(hdl, &zc, 0) != 0)
135 zc.zc_cookie = hdl->libzfs_ns_gen;
136 if (ioctl(hdl->libzfs_fd, ZFS_IOC_POOL_CONFIGS, &zc) != 0) {
142 zcmd_free_nvlists(&zc);
146 if (zcmd_expand_dst_nvlist(hdl, &zc) != 0) {
147 zcmd_free_nvlists(&zc);
153 zcmd_free_nvlists(&zc);
159 hdl->libzfs_ns_gen = zc.zc_cookie;
164 if (zcmd_read_dst_nvlist(hdl, &zc, &config) != 0) {
165 zcmd_free_nvlists(&zc);
169 zcmd_free_nvlists(&zc);
267 zfs_cmd_t zc = { 0 };
273 (void) strcpy(zc.zc_name, zhp->zpool_name);
278 if (zcmd_alloc_dst_nvlist(hdl, &zc, zhp->zpool_config_size) != 0)
283 &zc) == 0) {
287 error = zc.zc_cookie;
292 if (zcmd_expand_dst_nvlist(hdl, &zc) != 0) {
293 zcmd_free_nvlists(&zc);
297 zcmd_free_nvlists(&zc);
305 if (zcmd_read_dst_nvlist(hdl, &zc, &config) != 0) {
306 zcmd_free_nvlists(&zc);
310 zcmd_free_nvlists(&zc);
312 zhp->zpool_config_size = zc.zc_nvlist_dst_size;