/freebsd/sys/contrib/openzfs/include/ |
H A D | libzfs.h | 206 typedef struct zpool_handle zpool_handle_t; typedef 209 _LIBZFS_H int zpool_wait(zpool_handle_t *, zpool_wait_activity_t); 210 _LIBZFS_H int zpool_wait_status(zpool_handle_t *, zpool_wait_activity_t, 219 _LIBZFS_H libzfs_handle_t *zpool_get_handle(zpool_handle_t *); 244 _LIBZFS_H zpool_handle_t *zpool_open(libzfs_handle_t *, const char *); 245 _LIBZFS_H zpool_handle_t *zpool_open_canfail(libzfs_handle_t *, const char *); 246 _LIBZFS_H void zpool_close(zpool_handle_t *); 247 _LIBZFS_H const char *zpool_get_name(zpool_handle_t *); 248 _LIBZFS_H int zpool_get_state(zpool_handle_t *); 256 typedef int (*zpool_iter_f)(zpool_handle_t *, void *); [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zpool/ |
H A D | zpool_util.h | 60 nvlist_t *make_root_vdev(zpool_handle_t *zhp, nvlist_t *props, int force, 63 nvlist_t *split_mirror_vdev(zpool_handle_t *zhp, char *newname, 73 int for_each_vdev(zpool_handle_t *zhp, pool_vdev_iter_f func, void *data); 83 void pool_list_remove(zpool_list_t *, zpool_handle_t *); 139 void after_zpool_upgrade(zpool_handle_t *zhp); 142 int zpool_power(zpool_handle_t *zhp, char *vdev, boolean_t turn_on); 143 int zpool_power_current_state(zpool_handle_t *zhp, char *vdev);
|
H A D | zpool_iter.c | 53 zpool_handle_t *zn_handle; 71 zpool_handle_t *l = ((zpool_node_t *)larg)->zn_handle; in zpool_compare() 72 zpool_handle_t *r = ((zpool_node_t *)rarg)->zn_handle; in zpool_compare() 84 add_pool(zpool_handle_t *zhp, void *data) in add_pool() 146 zpool_handle_t *zhp; in pool_list_get() 198 pool_list_remove(zpool_list_t *zlp, zpool_handle_t *zhp) in pool_list_remove() 281 for_each_vdev(zpool_handle_t *zhp, pool_vdev_iter_f func, void *data) in for_each_vdev() 553 zpool_handle_t *zhp = zhp_data; in for_each_vdev_run_cb() 616 all_pools_for_each_vdev_gather_cb(zpool_handle_t *zhp, void *cb_vcdl) in all_pools_for_each_vdev_gather_cb()
|
H A D | zpool_main.c | 564 zpool_collect_leaves(zpool_handle_t *zhp, nvlist_t *nvroot, nvlist_t *res) in zpool_collect_leaves() 641 vdev_name_to_path(zpool_handle_t *zhp, char *vdev) in vdev_name_to_path() 651 zpool_power_on(zpool_handle_t *zhp, char *vdev) in zpool_power_on() 657 zpool_power_on_and_disk_wait(zpool_handle_t *zhp, char *vdev) in zpool_power_on_and_disk_wait() 671 zpool_power_on_pool_and_wait_for_devices(zpool_handle_t *zhp) in zpool_power_on_pool_and_wait_for_devices() 702 zpool_power_off(zpool_handle_t *zhp, char *vdev) in zpool_power_off() 796 zpool_handle_t *zhp; in zpool_do_initialize() 904 print_vdev_tree(zpool_handle_t *zhp, const char *name, nvlist_t *nv, int indent, in print_vdev_tree() 1000 zpool_handle_t *cb_zhp; 1025 find_spare(zpool_handle_t *zhp, void *data) in find_spare() [all …]
|
/freebsd/cddl/usr.sbin/zfsd/ |
H A D | zpool_list.h | 52 typedef struct zpool_handle zpool_handle_t; typedef 62 typedef bool PoolFilter_t(zpool_handle_t *pool, nvlist_t *poolConfig, 71 class ZpoolList : public std::list<zpool_handle_t *> 117 static int LoadIterator(zpool_handle_t *pool, void *data);
|
H A D | zpool_list.cc | 67 ZpoolList::ZpoolAll(zpool_handle_t *pool, nvlist_t *poolConfig, void *cbArg) in ZpoolAll() 73 ZpoolList::ZpoolByGUID(zpool_handle_t *pool, nvlist_t *poolConfig, in ZpoolByGUID() 86 ZpoolList::ZpoolByName(zpool_handle_t *pool, nvlist_t *poolConfig, void *cbArg) in ZpoolByName() 95 ZpoolList::LoadIterator(zpool_handle_t *pool, void *data) in LoadIterator()
|
H A D | vdev.h | 50 typedef struct zpool_handle zpool_handle_t; typedef 78 Vdev(zpool_handle_t *pool, nvlist_t *vdevConfig); 133 virtual std::string Name(zpool_handle_t *, bool verbose) const;
|
H A D | zfsd_exception.h | 49 typedef struct zpool_handle zpool_handle_t; typedef 82 ZfsdException(zpool_handle_t *pool, const char *, ...);
|
H A D | vdev_iterator.h | 47 typedef struct zpool_handle zpool_handle_t; typedef 70 VdevIterator(zpool_handle_t *pool);
|
H A D | zfsd.h | 63 typedef struct zpool_handle zpool_handle_t; typedef 71 typedef int LeafIterFunc(zpool_handle_t *, nvlist_t *, void *);
|
H A D | case_file.cc | 248 zpool_handle_t *casePool(zpl.empty() ? NULL : zpl.front()); in RefreshVdevState() 266 zpool_handle_t *pool(zpl.empty() ? NULL : zpl.front()); in ReEvaluate() 525 zpool_handle_t *zhp(zpl.empty() ? NULL : zpl.front()); in ActivateSpare() 872 zpool_handle_t *zhp(zpl.empty() ? NULL : zpl.front()); in CaseFile() 1022 zpool_handle_t *zhp(zpl.empty() ? NULL : zpl.front()); in OnGracePeriodEnded() 1083 CaseFile::BeingReplacedBy(zpool_handle_t *zhp) { in BeingReplacedBy() 1133 zpool_handle_t *zhp(zpl.empty() ? NULL : zpl.front()); in Replace() 1214 zpool_handle_t *zhp(zpl.empty() ? NULL : zpl.front()); in GetVdevProp() 1259 CaseFile::CaseVdev(zpool_handle_t *zhp) const in CaseVdev()
|
H A D | case_file.h | 379 Vdev BeingReplacedBy(zpool_handle_t *zhp); 419 nvlist_t *CaseVdev(zpool_handle_t *zhp) const;
|
H A D | zfsd_event.cc | 397 zpool_handle_t* hdl; in CleanupSpares() 453 zpool_handle_t *hdl(static_cast<zpool_handle_t*>(cbArg)); in TryDetach()
|
H A D | vdev.cc | 103 Vdev::Vdev(zpool_handle_t *pool, nvlist_t *config) in Vdev() 326 Vdev::Name(zpool_handle_t *zhp, bool verbose) const in Name()
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_pool.c | 76 zpool_get_all_props(zpool_handle_t *zhp) in zpool_get_all_props() 112 zpool_props_refresh(zpool_handle_t *zhp) in zpool_props_refresh() 126 zpool_get_prop_string(zpool_handle_t *zhp, zpool_prop_t prop, in zpool_get_prop_string() 150 zpool_get_prop_int(zpool_handle_t *zhp, zpool_prop_t prop, zprop_source_t *src) in zpool_get_prop_int() 255 zpool_get_state_str(zpool_handle_t *zhp) in zpool_get_state_str() 285 zpool_get_prop(zpool_handle_t *zhp, zpool_prop_t prop, char *buf, in zpool_get_prop() 472 zpool_get_userprop(zpool_handle_t *zhp, const char *propname, char *buf, in zpool_get_userprop() 537 zpool_handle_t *zhp; in zpool_valid_proplist() 895 zpool_set_prop(zpool_handle_t *zhp, const char *propname, const char *propval) in zpool_set_prop() 948 zpool_expand_proplist(zpool_handle_t *zhp, zprop_list_t **plp, in zpool_expand_proplist() [all …]
|
H A D | libzfs_impl.h | 53 zpool_handle_t *libzfs_pool_handles; 80 zpool_handle_t *zpool_hdl; 102 zpool_handle_t *zpool_next; 193 zpool_handle_t **);
|
H A D | libzfs_import.c | 51 zpool_handle_t *zhp; in pool_active() 245 zpool_handle_t *cb_zhp; 249 find_aux(zpool_handle_t *zhp, void *data) in find_aux() 287 zpool_handle_t *zhp; in zpool_in_use()
|
H A D | libzfs_config.c | 205 zpool_get_config(zpool_handle_t *zhp, nvlist_t **oldconfig) in zpool_get_config() 217 zpool_get_features(zpool_handle_t *zhp) in zpool_get_features() 250 zpool_refresh_stats(zpool_handle_t *zhp, boolean_t *missing) in zpool_refresh_stats() 373 zpool_handle_t *zhp; in zpool_iter()
|
/freebsd/sys/contrib/openzfs/cmd/zpool/os/freebsd/ |
H A D | zpool_vdev_os.c | 109 after_zpool_upgrade(zpool_handle_t *zhp) in after_zpool_upgrade() 130 zpool_power_current_state(zpool_handle_t *zhp, char *vdev) in zpool_power_current_state() 140 zpool_power(zpool_handle_t *zhp, char *vdev, boolean_t turn_on) in zpool_power()
|
/freebsd/cddl/usr.sbin/zfsd/tests/ |
H A D | libmocks.h | 43 typedef struct zpool_handle zpool_handle_t; typedef 44 typedef int (*zpool_iter_f)(zpool_handle_t *, void *);
|
/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | zfs_retire.c | 78 zpool_handle_t *cb_zhp; 85 find_pool(zpool_handle_t *zhp, void *data) in find_pool() 148 remove_spares(zpool_handle_t *zhp, void *data) in remove_spares() 208 static zpool_handle_t * 213 zpool_handle_t *zhp; in find_by_guid() 247 replace_with_spare(fmd_hdl_t *hdl, zpool_handle_t *zhp, nvlist_t *vdev) in replace_with_spare() 371 zpool_handle_t *zhp; in zfs_retire_recv()
|
H A D | zfs_mod.c | 96 typedef void (*zfs_process_func_t)(zpool_handle_t *, nvlist_t *, boolean_t); 106 zpool_handle_t *uap_zhp; 116 zfs_toplevel_state(zpool_handle_t *zhp) in zfs_toplevel_state() 130 zfs_unavail_pool(zpool_handle_t *zhp, void *data) in zfs_unavail_pool() 197 zfs_process_add(zpool_handle_t *zhp, nvlist_t *vdev, boolean_t labeled) in zfs_process_add() 615 zfs_iter_vdev(zpool_handle_t *zhp, nvlist_t *nvl, void *data) in zfs_iter_vdev() 714 zfs_iter_pool(zpool_handle_t *zhp, void *data) in zfs_iter_pool() 1003 vdev_size_from_config(zpool_handle_t *zhp, const char *vdev_path) in vdev_size_from_config() 1036 vdev_whole_disk_from_config(zpool_handle_t *zhp, const char *vdev_path) in vdev_whole_disk_from_config() 1059 zfsdle_vdev_online(zpool_handle_t *zhp, void *data) in zfsdle_vdev_online()
|
/freebsd/sys/contrib/openzfs/cmd/zpool/os/linux/ |
H A D | zpool_vdev_os.c | 410 after_zpool_upgrade(zpool_handle_t *zhp) in after_zpool_upgrade() 529 zpool_power_sysfs_path(zpool_handle_t *zhp, char *vdev) in zpool_power_sysfs_path() 591 zpool_power_current_state(zpool_handle_t *zhp, char *vdev) in zpool_power_current_state() 626 zpool_power(zpool_handle_t *zhp, char *vdev, boolean_t turn_on) in zpool_power()
|
/freebsd/sys/contrib/openzfs/lib/libzfsbootenv/ |
H A D | lzbe_device.c | 32 zpool_handle_t *zphdl; in lzbe_set_boot_device() 118 zpool_handle_t *zphdl; in lzbe_get_boot_device()
|
/freebsd/lib/libbe/ |
H A D | be_impl.h | 41 zpool_handle_t *active_phandle;
|