Lines Matching refs:zpool_handle_t

178 typedef struct zpool_handle zpool_handle_t;
187 extern libzfs_handle_t *zpool_get_handle(zpool_handle_t *);
211 extern zpool_handle_t *zpool_open(libzfs_handle_t *, const char *);
212 extern zpool_handle_t *zpool_open_canfail(libzfs_handle_t *, const char *);
213 extern void zpool_close(zpool_handle_t *);
214 extern const char *zpool_get_name(zpool_handle_t *);
215 extern int zpool_get_state(zpool_handle_t *);
223 typedef int (*zpool_iter_f)(zpool_handle_t *, void *);
231 extern int zpool_destroy(zpool_handle_t *, const char *);
232 extern int zpool_add(zpool_handle_t *, nvlist_t *);
245 extern int zpool_scan(zpool_handle_t *, pool_scan_func_t);
246 extern int zpool_clear(zpool_handle_t *, const char *, nvlist_t *);
247 extern int zpool_reguid(zpool_handle_t *);
248 extern int zpool_reopen(zpool_handle_t *);
250 extern int zpool_vdev_online(zpool_handle_t *, const char *, int,
252 extern int zpool_vdev_offline(zpool_handle_t *, const char *, boolean_t);
253 extern int zpool_vdev_attach(zpool_handle_t *, const char *,
255 extern int zpool_vdev_detach(zpool_handle_t *, const char *);
256 extern int zpool_vdev_remove(zpool_handle_t *, const char *);
257 extern int zpool_vdev_split(zpool_handle_t *, char *, nvlist_t **, nvlist_t *,
260 extern int zpool_vdev_fault(zpool_handle_t *, uint64_t, vdev_aux_t);
261 extern int zpool_vdev_degrade(zpool_handle_t *, uint64_t, vdev_aux_t);
262 extern int zpool_vdev_clear(zpool_handle_t *, uint64_t);
264 extern nvlist_t *zpool_find_vdev(zpool_handle_t *, const char *, boolean_t *,
266 extern nvlist_t *zpool_find_vdev_by_physpath(zpool_handle_t *, const char *,
268 extern int zpool_label_disk(libzfs_handle_t *, zpool_handle_t *, const char *);
273 extern int zpool_set_prop(zpool_handle_t *, const char *, const char *);
274 extern int zpool_get_prop(zpool_handle_t *, zpool_prop_t, char *,
276 extern uint64_t zpool_get_prop_int(zpool_handle_t *, zpool_prop_t,
340 extern zpool_status_t zpool_get_status(zpool_handle_t *, char **);
347 extern nvlist_t *zpool_get_config(zpool_handle_t *, nvlist_t **);
348 extern nvlist_t *zpool_get_features(zpool_handle_t *);
349 extern int zpool_refresh_stats(zpool_handle_t *, boolean_t *);
350 extern int zpool_get_errlog(zpool_handle_t *, nvlist_t **);
355 extern int zpool_export(zpool_handle_t *, boolean_t, const char *);
356 extern int zpool_export_force(zpool_handle_t *, const char *);
392 extern char *zpool_vdev_name(libzfs_handle_t *, zpool_handle_t *, nvlist_t *,
394 extern int zpool_upgrade(zpool_handle_t *, uint64_t);
395 extern int zpool_get_history(zpool_handle_t *, nvlist_t **);
398 extern void zpool_obj_to_path(zpool_handle_t *, uint64_t, uint64_t, char *,
401 extern int zpool_get_physpath(zpool_handle_t *, char *, size_t);
414 extern zpool_handle_t *zfs_get_pool_handle(const zfs_handle_t *);
430 nvlist_t *, uint64_t, zfs_handle_t *, zpool_handle_t *, const char *);
487 extern int zpool_expand_proplist(zpool_handle_t *, zprop_list_t **);
488 extern int zpool_prop_get_feature(zpool_handle_t *, const char *, char *,
790 extern int zpool_enable_datasets(zpool_handle_t *, const char *, int);
791 extern int zpool_disable_datasets(zpool_handle_t *, boolean_t);
802 extern int zpool_fru_set(zpool_handle_t *, uint64_t, const char *);