Lines Matching refs:zc
110 zfs_cmd_t zc = {"\0"}; in namespace_reload() local
130 zcmd_alloc_dst_nvlist(hdl, &zc, 0); in namespace_reload()
133 zc.zc_cookie = hdl->libzfs_ns_gen; in namespace_reload()
134 if (zfs_ioctl(hdl, ZFS_IOC_POOL_CONFIGS, &zc) != 0) { in namespace_reload()
140 zcmd_free_nvlists(&zc); in namespace_reload()
144 zcmd_expand_dst_nvlist(hdl, &zc); in namespace_reload()
148 zcmd_free_nvlists(&zc); in namespace_reload()
154 hdl->libzfs_ns_gen = zc.zc_cookie; in namespace_reload()
159 if (zcmd_read_dst_nvlist(hdl, &zc, &config) != 0) { in namespace_reload()
160 zcmd_free_nvlists(&zc); in namespace_reload()
164 zcmd_free_nvlists(&zc); in namespace_reload()
252 zfs_cmd_t zc = {"\0"}; in zpool_refresh_stats() local
258 (void) strcpy(zc.zc_name, zhp->zpool_name); in zpool_refresh_stats()
263 zcmd_alloc_dst_nvlist(hdl, &zc, zhp->zpool_config_size); in zpool_refresh_stats()
267 &zc) == 0) { in zpool_refresh_stats()
271 error = zc.zc_cookie; in zpool_refresh_stats()
276 zcmd_expand_dst_nvlist(hdl, &zc); in zpool_refresh_stats()
278 zcmd_free_nvlists(&zc); in zpool_refresh_stats()
286 if (zcmd_read_dst_nvlist(hdl, &zc, &config) != 0) { in zpool_refresh_stats()
287 zcmd_free_nvlists(&zc); in zpool_refresh_stats()
291 zcmd_free_nvlists(&zc); in zpool_refresh_stats()
293 zhp->zpool_config_size = zc.zc_nvlist_dst_size; in zpool_refresh_stats()