Lines Matching refs:cb

58 	cbdata_t cb;  in fmd_fmri_nvl2str()  local
68 cb.cb_guid = pool_guid; in fmd_fmri_nvl2str()
69 cb.cb_pool = NULL; in fmd_fmri_nvl2str()
71 if (zpool_iter(g_zfs, find_pool, &cb) == 1) { in fmd_fmri_nvl2str()
72 name = zpool_get_name(cb.cb_pool); in fmd_fmri_nvl2str()
85 if (cb.cb_pool) in fmd_fmri_nvl2str()
86 zpool_close(cb.cb_pool); in fmd_fmri_nvl2str()
147 cbdata_t cb; in fmd_fmri_present() local
152 cb.cb_guid = pool_guid; in fmd_fmri_present()
153 cb.cb_pool = NULL; in fmd_fmri_present()
155 if (zpool_iter(g_zfs, find_pool, &cb) != 1) in fmd_fmri_present()
159 zpool_close(cb.cb_pool); in fmd_fmri_present()
163 ret = (find_vdev(cb.cb_pool, vdev_guid) != NULL); in fmd_fmri_present()
165 zpool_close(cb.cb_pool); in fmd_fmri_present()
174 cbdata_t cb; in fmd_fmri_replaced() local
179 cb.cb_guid = pool_guid; in fmd_fmri_replaced()
180 cb.cb_pool = NULL; in fmd_fmri_replaced()
182 if (zpool_iter(g_zfs, find_pool, &cb) != 1) in fmd_fmri_replaced()
186 zpool_close(cb.cb_pool); in fmd_fmri_replaced()
190 ret = (find_vdev(cb.cb_pool, vdev_guid) != NULL) ? in fmd_fmri_replaced()
193 zpool_close(cb.cb_pool); in fmd_fmri_replaced()
202 cbdata_t cb; in fmd_fmri_unusable() local
208 cb.cb_guid = pool_guid; in fmd_fmri_unusable()
209 cb.cb_pool = NULL; in fmd_fmri_unusable()
211 if (zpool_iter(g_zfs, find_pool, &cb) != 1) in fmd_fmri_unusable()
215 ret = (zpool_get_state(cb.cb_pool) == POOL_STATE_UNAVAIL); in fmd_fmri_unusable()
216 zpool_close(cb.cb_pool); in fmd_fmri_unusable()
220 vd = find_vdev(cb.cb_pool, vdev_guid); in fmd_fmri_unusable()
233 zpool_close(cb.cb_pool); in fmd_fmri_unusable()