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