• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/openzfs/include/

Lines Matching defs:zpool_handle_t

196 typedef struct zpool_handle zpool_handle_t;
199 extern int zpool_wait(zpool_handle_t *, zpool_wait_activity_t);
200 extern int zpool_wait_status(zpool_handle_t *, zpool_wait_activity_t,
209 extern libzfs_handle_t *zpool_get_handle(zpool_handle_t *);
234 extern zpool_handle_t *zpool_open(libzfs_handle_t *, const char *);
235 extern zpool_handle_t *zpool_open_canfail(libzfs_handle_t *, const char *);
236 extern void zpool_close(zpool_handle_t *);
237 extern const char *zpool_get_name(zpool_handle_t *);
238 extern int zpool_get_state(zpool_handle_t *);
246 typedef int (*zpool_iter_f)(zpool_handle_t *, void *);
255 extern int zpool_destroy(zpool_handle_t *, const char *);
256 extern int zpool_add(zpool_handle_t *, nvlist_t *);
284 extern int zpool_scan(zpool_handle_t *, pool_scan_func_t, pool_scrub_cmd_t);
285 extern int zpool_initialize(zpool_handle_t *, pool_initialize_func_t,
287 extern int zpool_initialize_wait(zpool_handle_t *, pool_initialize_func_t,
289 extern int zpool_trim(zpool_handle_t *, pool_trim_func_t, nvlist_t *,
292 extern int zpool_clear(zpool_handle_t *, const char *, nvlist_t *);
293 extern int zpool_reguid(zpool_handle_t *);
294 extern int zpool_reopen_one(zpool_handle_t *, void *);
296 extern int zpool_sync_one(zpool_handle_t *, void *);
298 extern int zpool_vdev_online(zpool_handle_t *, const char *, int,
300 extern int zpool_vdev_offline(zpool_handle_t *, const char *, boolean_t);
301 extern int zpool_vdev_attach(zpool_handle_t *, const char *,
303 extern int zpool_vdev_detach(zpool_handle_t *, const char *);
304 extern int zpool_vdev_remove(zpool_handle_t *, const char *);
305 extern int zpool_vdev_remove_cancel(zpool_handle_t *);
306 extern int zpool_vdev_indirect_size(zpool_handle_t *, const char *, uint64_t *);
307 extern int zpool_vdev_split(zpool_handle_t *, char *, nvlist_t **, nvlist_t *,
310 extern int zpool_vdev_fault(zpool_handle_t *, uint64_t, vdev_aux_t);
311 extern int zpool_vdev_degrade(zpool_handle_t *, uint64_t, vdev_aux_t);
312 extern int zpool_vdev_clear(zpool_handle_t *, uint64_t);
314 extern nvlist_t *zpool_find_vdev(zpool_handle_t *, const char *, boolean_t *,
316 extern nvlist_t *zpool_find_vdev_by_physpath(zpool_handle_t *, const char *,
318 extern int zpool_label_disk(libzfs_handle_t *, zpool_handle_t *, const char *);
319 extern uint64_t zpool_vdev_path_to_guid(zpool_handle_t *zhp, const char *path);
321 const char *zpool_get_state_str(zpool_handle_t *);
326 extern int zpool_set_prop(zpool_handle_t *, const char *, const char *);
327 extern int zpool_get_prop(zpool_handle_t *, zpool_prop_t, char *,
329 extern uint64_t zpool_get_prop_int(zpool_handle_t *, zpool_prop_t,
331 extern int zpool_props_refresh(zpool_handle_t *);
404 extern zpool_status_t zpool_get_status(zpool_handle_t *, char **,
412 extern nvlist_t *zpool_get_config(zpool_handle_t *, nvlist_t **);
413 extern nvlist_t *zpool_get_features(zpool_handle_t *);
414 extern int zpool_refresh_stats(zpool_handle_t *, boolean_t *);
415 extern int zpool_get_errlog(zpool_handle_t *, nvlist_t **);
420 extern int zpool_export(zpool_handle_t *, boolean_t, const char *);
421 extern int zpool_export_force(zpool_handle_t *, const char *);
442 extern char *zpool_vdev_name(libzfs_handle_t *, zpool_handle_t *, nvlist_t *,
444 extern int zpool_upgrade(zpool_handle_t *, uint64_t);
445 extern int zpool_get_history(zpool_handle_t *, nvlist_t **, uint64_t *,
451 extern void zpool_obj_to_path_ds(zpool_handle_t *, uint64_t, uint64_t, char *,
453 extern void zpool_obj_to_path(zpool_handle_t *, uint64_t, uint64_t, char *,
456 extern int zpool_get_physpath(zpool_handle_t *, char *, size_t);
459 extern int zpool_checkpoint(zpool_handle_t *);
460 extern int zpool_discard_checkpoint(zpool_handle_t *);
472 extern zpool_handle_t *zfs_get_pool_handle(const zfs_handle_t *);
489 uint64_t, zfs_handle_t *, zpool_handle_t *, boolean_t, const char *);
563 extern int zpool_expand_proplist(zpool_handle_t *, zprop_list_t **, boolean_t);
564 extern int zpool_prop_get_feature(zpool_handle_t *, const char *, char *,
735 extern uint64_t zvol_volsize_to_reservation(zpool_handle_t *, uint64_t,
902 extern int zpool_set_bootenv(zpool_handle_t *, const nvlist_t *);
903 extern int zpool_get_bootenv(zpool_handle_t *, nvlist_t **);
918 extern int zpool_enable_datasets(zpool_handle_t *, const char *, int);
919 extern int zpool_disable_datasets(zpool_handle_t *, boolean_t);