Lines Matching refs:zc
109 zfs_cmd_t zc = { 0 }; in namespace_reload() local
129 if (zcmd_alloc_dst_nvlist(hdl, &zc, 0) != 0) in namespace_reload()
133 zc.zc_cookie = hdl->libzfs_ns_gen; in namespace_reload()
134 if (ioctl(hdl->libzfs_fd, ZFS_IOC_POOL_CONFIGS, &zc) != 0) { in namespace_reload()
140 zcmd_free_nvlists(&zc); in namespace_reload()
144 if (zcmd_expand_dst_nvlist(hdl, &zc) != 0) { in namespace_reload()
145 zcmd_free_nvlists(&zc); in namespace_reload()
151 zcmd_free_nvlists(&zc); in namespace_reload()
157 hdl->libzfs_ns_gen = zc.zc_cookie; in namespace_reload()
162 if (zcmd_read_dst_nvlist(hdl, &zc, &config) != 0) { in namespace_reload()
163 zcmd_free_nvlists(&zc); in namespace_reload()
167 zcmd_free_nvlists(&zc); in namespace_reload()
264 zfs_cmd_t zc = { 0 }; in zpool_refresh_stats() local
270 (void) strcpy(zc.zc_name, zhp->zpool_name); in zpool_refresh_stats()
275 if (zcmd_alloc_dst_nvlist(hdl, &zc, zhp->zpool_config_size) != 0) in zpool_refresh_stats()
280 &zc) == 0) { in zpool_refresh_stats()
284 error = zc.zc_cookie; in zpool_refresh_stats()
289 if (zcmd_expand_dst_nvlist(hdl, &zc) != 0) { in zpool_refresh_stats()
290 zcmd_free_nvlists(&zc); in zpool_refresh_stats()
294 zcmd_free_nvlists(&zc); in zpool_refresh_stats()
302 if (zcmd_read_dst_nvlist(hdl, &zc, &config) != 0) { in zpool_refresh_stats()
303 zcmd_free_nvlists(&zc); in zpool_refresh_stats()
307 zcmd_free_nvlists(&zc); in zpool_refresh_stats()
309 zhp->zpool_config_size = zc.zc_nvlist_dst_size; in zpool_refresh_stats()