/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_impl.h | 79 libzfs_handle_t *zfs_hdl; 101 libzfs_handle_t *zpool_hdl; 124 extern int zfs_error(libzfs_handle_t *, int, const char *); 125 extern int zfs_error_fmt(libzfs_handle_t *, int, const char *, ...) 127 extern void zfs_error_aux(libzfs_handle_t *, const char *, ...) 129 extern void *zfs_alloc(libzfs_handle_t *, size_t); 130 extern void *zfs_realloc(libzfs_handle_t *, void *, size_t, size_t); 131 extern char *zfs_asprintf(libzfs_handle_t *, const char *, ...) 133 extern char *zfs_strdup(libzfs_handle_t *, const char *); 134 extern int no_memory(libzfs_handle_t *); [all …]
|
H A D | libzfs_util.c | 75 libzfs_errno(libzfs_handle_t *hdl) in libzfs_errno() 81 libzfs_error_action(libzfs_handle_t *hdl) in libzfs_error_action() 87 libzfs_error_description(libzfs_handle_t *hdl) in libzfs_error_description() 336 zfs_error_aux(libzfs_handle_t *hdl, const char *fmt, ...) in zfs_error_aux() 350 zfs_verror(libzfs_handle_t *hdl, int error, const char *fmt, va_list ap) in zfs_verror() 377 zfs_error(libzfs_handle_t *hdl, int error, const char *msg) in zfs_error() 383 zfs_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) in zfs_error_fmt() 397 zfs_common_error(libzfs_handle_t *hdl, int error, const char *fmt, in zfs_common_error() 431 zfs_standard_error(libzfs_handle_t *hdl, int error, const char *msg) in zfs_standard_error() 437 zfs_standard_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) in zfs_standard_error_fmt() [all …]
|
H A D | libzfs_config.c | 78 namespace_clear(libzfs_handle_t *hdl) in namespace_clear() 105 namespace_reload(libzfs_handle_t *hdl) in namespace_reload() 255 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_refresh_stats() 370 zpool_iter(libzfs_handle_t *hdl, zpool_iter_f func, void *data) in zpool_iter() 415 zfs_iter_root(libzfs_handle_t *hdl, zfs_iter_f func, void *data) in zfs_iter_root()
|
H A D | libzfs_import.c | 48 pool_active(libzfs_handle_t *hdl, const char *name, uint64_t guid, in pool_active() 71 refresh_config(libzfs_handle_t *hdl, nvlist_t *config) in refresh_config() 104 return (refresh_config((libzfs_handle_t *)handle, tryconfig)); in refresh_config_libzfs() 111 return (pool_active((libzfs_handle_t *)handle, name, guid, isactive)); in pool_active_libzfs() 280 zpool_in_use(libzfs_handle_t *hdl, int fd, pool_state_t *state, char **namestr, in zpool_in_use()
|
H A D | libzfs_pool.c | 80 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_get_all_props() 529 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, in zpool_valid_proplist() 953 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_expand_proplist() 1207 zpool_name_valid(libzfs_handle_t *hdl, boolean_t isopen, const char *pool) in zpool_name_valid() 1306 zpool_open_canfail(libzfs_handle_t *hdl, const char *pool) in zpool_open_canfail() 1347 zpool_open_silent(libzfs_handle_t *hdl, const char *pool, zpool_handle_t **ret) in zpool_open_silent() 1377 zpool_open(libzfs_handle_t *hdl, const char *pool) in zpool_open() 1486 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, in zpool_create() 1659 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_destroy() 1700 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_checkpoint() [all …]
|
H A D | libzfs_dataset.c | 109 zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type, in zfs_validate_name() 239 libzfs_handle_t *hdl = zhp->zfs_hdl; in process_user_props() 267 libzfs_handle_t *hdl = zhp->zfs_hdl; in zpool_add_handle() 281 libzfs_handle_t *hdl = zhp->zfs_hdl; in zpool_find_handle() 315 zpool_free_handles(libzfs_handle_t *hdl) in zpool_free_handles() 333 libzfs_handle_t *hdl = zhp->zfs_hdl; in get_stats_ioctl() 352 libzfs_handle_t *hdl = zhp->zfs_hdl; in get_recvd_props_ioctl() 479 make_dataset_handle(libzfs_handle_t *hdl, const char *path) in make_dataset_handle() 506 make_dataset_handle_zc(libzfs_handle_t *hdl, zfs_cmd_t *zc) in make_dataset_handle_zc() 707 zfs_open(libzfs_handle_t *hdl, const char *path, int types) in zfs_open() [all …]
|
H A D | libzfs_crypto.c | 72 static int get_key_material_file(libzfs_handle_t *, const char *, const char *, 74 static int get_key_material_https(libzfs_handle_t *, const char *, const char *, 108 zfs_prop_parse_keylocation(libzfs_handle_t *restrict hdl, const char *str, in zfs_prop_parse_keylocation() 204 validate_key(libzfs_handle_t *hdl, zfs_keyformat_t keyformat, in validate_key() 360 get_key_interactive(libzfs_handle_t *restrict hdl, const char *fsname, in get_key_interactive() 483 get_key_material_file(libzfs_handle_t *hdl, const char *uri, in get_key_material_file() 510 get_key_material_https(libzfs_handle_t *hdl, const char *uri, in get_key_material_https() 688 get_key_material(libzfs_handle_t *hdl, boolean_t do_verify, boolean_t newkey, in get_key_material() 778 derive_key(libzfs_handle_t *hdl, zfs_keyformat_t format, uint64_t iters, in derive_key() 852 populate_create_encryption_params_nvlists(libzfs_handle_t *hdl, in populate_create_encryption_params_nvlists() [all …]
|
H A D | libzfs_mount.c | 201 is_mounted(libzfs_handle_t *zfs_hdl, const char *special, char **where) in is_mounted() 367 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_mount_at() 592 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_unmount() 686 unshare_one(libzfs_handle_t *hdl, const char *name, const char *mountpoint, in unshare_one() 808 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_unshare() 1073 libzfs_handle_t *mnt_hdl; 1087 zfs_dispatch_mount(libzfs_handle_t *hdl, zfs_handle_t **handles, in zfs_dispatch_mount() 1219 zfs_foreach_mountpoint(libzfs_handle_t *hdl, zfs_handle_t **handles, in zfs_foreach_mountpoint() 1361 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_disable_datasets()
|
H A D | libzfs_sendrecv.c | 73 static int zfs_receive_impl(libzfs_handle_t *, const char *, const char *, 76 static int guid_to_name_redact_snaps(libzfs_handle_t *hdl, const char *parent, 79 static int guid_to_name(libzfs_handle_t *, const char *, 449 get_snap_guid(libzfs_handle_t *hdl, const char *fs, const char *snap) in get_snap_guid() 472 get_snap_txg(libzfs_handle_t *hdl, const char *fs, const char *snap) in get_snap_txg() 683 gather_nvlist(libzfs_handle_t *hdl, const char *fsname, const char *fromsnap, in gather_nvlist() 770 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_send_space() 816 libzfs_handle_t *hdl = zhp->zfs_hdl; in dump_ioctl() 1063 libzfs_handle_t *hdl, pthread_t ptid, sigset_t *oldmask) in send_progress_thread_exit() 1521 zfs_send_resume_token_to_nvlist(libzfs_handle_t *hdl, const char *token) in zfs_send_resume_token_to_nvlist() [all …]
|
/freebsd/sys/contrib/openzfs/include/ |
H A D | libzfs.h | 208 typedef struct libzfs_handle libzfs_handle_t; typedef 217 _LIBZFS_H libzfs_handle_t *libzfs_init(void); 218 _LIBZFS_H void libzfs_fini(libzfs_handle_t *); 220 _LIBZFS_H libzfs_handle_t *zpool_get_handle(zpool_handle_t *); 221 _LIBZFS_H libzfs_handle_t *zfs_get_handle(zfs_handle_t *); 223 _LIBZFS_H void libzfs_print_on_error(libzfs_handle_t *, boolean_t); 226 _LIBZFS_H int zpool_log_history(libzfs_handle_t *, const char *); 228 _LIBZFS_H int libzfs_errno(libzfs_handle_t *); 230 _LIBZFS_H const char *libzfs_error_action(libzfs_handle_t *); 231 _LIBZFS_H const char *libzfs_error_description(libzfs_handle_t *); [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzfs/os/freebsd/ |
H A D | libzfs_compat.c | 244 zpool_relabel_disk(libzfs_handle_t *hdl, const char *path, const char *msg) in zpool_relabel_disk() 251 zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name) in zpool_label_disk() 265 zfs_destroy_snaps_nvl_os(libzfs_handle_t *hdl, nvlist_t *snaps) in zfs_destroy_snaps_nvl_os() 277 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_jail() 333 zpool_nextboot(libzfs_handle_t *hdl, uint64_t pool_guid, uint64_t dev_guid, in zpool_nextboot()
|
/freebsd/cddl/usr.sbin/zfsd/tests/ |
H A D | libmocks.h | 41 typedef struct libzfs_handle libzfs_handle_t; typedef 47 int zpool_iter(libzfs_handle_t*, zpool_iter_f, void*);
|
H A D | libmocks.c | 54 int zpool_iter(libzfs_handle_t* handle, zpool_iter_f iter, void* arg) { in zpool_iter()
|
/freebsd/sys/contrib/openzfs/cmd/zpool/ |
H A D | zpool_util.h | 85 extern libzfs_handle_t *g_zfs; 110 libzfs_handle_t *g_zfs; 125 char *cmd, libzfs_handle_t *g_zfs, char **vdev_names, int vdev_names_count,
|
/freebsd/cddl/usr.sbin/zfsd/ |
H A D | zfsd.h | 66 typedef struct libzfs_handle libzfs_handle_t; typedef 75 extern libzfs_handle_t *g_zfsHandle;
|
/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | zfs_retire.c | 58 libzfs_handle_t *zrd_hdl; 103 find_vdev(libzfs_handle_t *zhdl, nvlist_t *nv, uint64_t search_guid) in find_vdev() 194 find_and_remove_spares(libzfs_handle_t *zhdl, uint64_t vdev_guid) in find_and_remove_spares() 209 find_by_guid(libzfs_handle_t *zhdl, uint64_t pool_guid, uint64_t vdev_guid, in find_by_guid() 376 libzfs_handle_t *zhdl = zdp->zrd_hdl; in zfs_retire_recv() 657 libzfs_handle_t *zhdl; in _zfs_retire_init()
|
H A D | zfs_agents.h | 32 extern void zfs_agent_init(libzfs_handle_t *);
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | ereports.c | 133 ereports_dump(libzfs_handle_t *zhdl, int zevent_fd) in ereports_dump() 154 libzfs_handle_t *hdl; in main()
|
/freebsd/sys/contrib/openzfs/lib/libzfsbootenv/ |
H A D | lzbe_device.c | 31 libzfs_handle_t *hdl; in lzbe_set_boot_device() 117 libzfs_handle_t *hdl; in lzbe_get_boot_device()
|
H A D | lzbe_pair.c | 30 libzfs_handle_t *hdl; in lzbe_nvlist_get() 77 libzfs_handle_t *hdl; in lzbe_nvlist_set()
|
/freebsd/sys/contrib/openzfs/cmd/zfs/ |
H A D | zfs_util.h | 37 extern libzfs_handle_t *g_zfs;
|
/freebsd/sys/contrib/openzfs/lib/libzfs/os/linux/ |
H A D | libzfs_util_os.c | 177 zfs_destroy_snaps_nvl_os(libzfs_handle_t *hdl, nvlist_t *snaps) in zfs_destroy_snaps_nvl_os() 215 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_userns()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/libzfs/ |
H A D | many_fds.c | 54 libzfs_handle_t *h = libzfs_init(); in main()
|
/freebsd/sys/contrib/openzfs/cmd/zstream/ |
H A D | zstream_token.c | 53 libzfs_handle_t *hdl; in zstream_do_token()
|
/freebsd/lib/libbe/ |
H A D | be_impl.h | 21 libzfs_handle_t *lzh;
|