/netbsd-src/external/cddl/osnet/dist/lib/libzfs/common/ |
H A D | libzfs_impl.h | 82 libzfs_handle_t *zfs_hdl; 103 libzfs_handle_t *zpool_hdl; 130 int zfs_error(libzfs_handle_t *, int, const char *); 131 int zfs_error_fmt(libzfs_handle_t *, int, const char *, ...); 132 void zfs_error_aux(libzfs_handle_t *, const char *, ...); 133 void *zfs_alloc(libzfs_handle_t *, size_t); 134 void *zfs_realloc(libzfs_handle_t *, void *, size_t, size_t); 135 char *zfs_asprintf(libzfs_handle_t *, const char *, ...); 136 char *zfs_strdup(libzfs_handle_t *, const char *); 137 int no_memory(libzfs_handle_t *); [all …]
|
H A D | libzfs.h | 176 typedef struct libzfs_handle libzfs_handle_t; typedef 181 extern libzfs_handle_t *libzfs_init(void); 182 extern void libzfs_fini(libzfs_handle_t *); 184 extern libzfs_handle_t *zpool_get_handle(zpool_handle_t *); 185 extern libzfs_handle_t *zfs_get_handle(zfs_handle_t *); 187 extern void libzfs_print_on_error(libzfs_handle_t *, boolean_t); 190 extern int zpool_log_history(libzfs_handle_t *, const char *); 192 extern int libzfs_errno(libzfs_handle_t *); 193 extern const char *libzfs_error_action(libzfs_handle_t *); 194 extern const char *libzfs_error_description(libzfs_handle_t *); [all …]
|
H A D | libzfs_util.c | 66 libzfs_errno(libzfs_handle_t *hdl) in libzfs_errno() 72 libzfs_error_action(libzfs_handle_t *hdl) in libzfs_error_action() 78 libzfs_error_description(libzfs_handle_t *hdl) in libzfs_error_description() 253 zfs_error_aux(libzfs_handle_t *hdl, const char *fmt, ...) in zfs_error_aux() 267 zfs_verror(libzfs_handle_t *hdl, int error, const char *fmt, va_list ap) in zfs_verror() 293 zfs_error(libzfs_handle_t *hdl, int error, const char *msg) in zfs_error() 300 zfs_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) in zfs_error_fmt() 314 zfs_common_error(libzfs_handle_t *hdl, int error, const char *fmt, in zfs_common_error() 344 zfs_standard_error(libzfs_handle_t *hdl, int error, const char *msg) in zfs_standard_error() 351 zfs_standard_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) in zfs_standard_error_fmt() [all …]
|
H A D | libzfs_fru.c | 106 libzfs_handle_t *hdl = arg; in libzfs_fru_gather() 257 libzfs_fru_refresh(libzfs_handle_t *hdl) in libzfs_fru_refresh() 307 libzfs_fru_lookup(libzfs_handle_t *hdl, const char *devpath) in libzfs_fru_lookup() 333 libzfs_fru_devpath(libzfs_handle_t *hdl, const char *fru) in libzfs_fru_devpath() 379 libzfs_fru_compare(libzfs_handle_t *hdl, const char *a, const char *b) in libzfs_fru_compare() 397 libzfs_fru_notself(libzfs_handle_t *hdl, const char *fru) in libzfs_fru_notself() 427 libzfs_fru_clear(libzfs_handle_t *hdl, boolean_t final) in libzfs_fru_clear()
|
H A D | libzfs_mount.c | 127 is_shared(libzfs_handle_t *hdl, const char *mountpoint, zfs_share_proto_t proto) in is_shared() 214 is_mounted(libzfs_handle_t *zfs_hdl, const char *special, char **where) in is_mounted() 276 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_mount() 364 unmount_one(libzfs_handle_t *hdl, const char *mountpoint, int flags) in unmount_one() 382 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_unmount() 523 static libzfs_handle_t *(*_sa_get_zfs_handle)(sa_handle_t); 569 _sa_get_zfs_handle = (libzfs_handle_t *(*)(sa_handle_t)) in _zfs_init_libshare() 608 zfs_init_libshare(libzfs_handle_t *zhandle, int service) in zfs_init_libshare() 650 zfs_uninit_libshare(libzfs_handle_t *zhandle) in zfs_uninit_libshare() 736 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_share_proto() [all …]
|
H A D | libzfs_dataset.c | 99 zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type, in zfs_validate_name() 204 libzfs_handle_t *hdl = zhp->zfs_hdl; in process_user_props() 233 libzfs_handle_t *hdl = zhp->zfs_hdl; in zpool_add_handle() 247 libzfs_handle_t *hdl = zhp->zfs_hdl; in zpool_find_handle() 281 zpool_free_handles(libzfs_handle_t *hdl) in zpool_free_handles() 299 libzfs_handle_t *hdl = zhp->zfs_hdl; in get_stats_ioctl() 321 libzfs_handle_t *hdl = zhp->zfs_hdl; in get_recvd_props_ioctl() 444 make_dataset_handle(libzfs_handle_t *hdl, const char *path) in make_dataset_handle() 473 make_dataset_handle_zc(libzfs_handle_t *hdl, zfs_cmd_t *zc) in make_dataset_handle_zc() 622 zfs_open(libzfs_handle_t *hdl, const char *path, int types) in zfs_open() [all …]
|
H A D | libzfs_pool.c | 70 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_get_all_props() 424 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, in zpool_valid_proplist() 718 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_expand_proplist() 880 zpool_name_valid(libzfs_handle_t *hdl, boolean_t isopen, const char *pool) in zpool_name_valid() 972 zpool_open_canfail(libzfs_handle_t *hdl, const char *pool) in zpool_open_canfail() 1014 zpool_open_silent(libzfs_handle_t *hdl, const char *pool, zpool_handle_t **ret) in zpool_open_silent() 1045 zpool_open(libzfs_handle_t *hdl, const char *pool) in zpool_open() 1099 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, in zpool_create() 1235 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_destroy() 1279 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_add() [all …]
|
H A D | libzfs_config.c | 79 namespace_clear(libzfs_handle_t *hdl) in namespace_clear() 106 namespace_reload(libzfs_handle_t *hdl) in namespace_reload() 270 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_refresh_stats() 401 zpool_iter(libzfs_handle_t *hdl, zpool_iter_f func, void *data) in zpool_iter() 446 zfs_iter_root(libzfs_handle_t *hdl, zfs_iter_f func, void *data) in zfs_iter_root()
|
H A D | libzfs_sendrecv.c | 68 extern void zfs_setprop_error(libzfs_handle_t *, zfs_prop_t, int, char *); 70 static int zfs_receive_impl(libzfs_handle_t *, const char *, const char *, 73 static int guid_to_name(libzfs_handle_t *, const char *, 81 libzfs_handle_t *dedup_hdl; 138 ddt_hash_append(libzfs_handle_t *hdl, dedup_table_t *ddt, dedup_entry_t **ddepp, in ddt_hash_append() 176 ddt_update(libzfs_handle_t *hdl, dedup_table_t *ddt, zio_cksum_t *cs, in ddt_update() 753 get_snap_txg(libzfs_handle_t *hdl, const char *fs, const char *snap) in get_snap_txg() 879 gather_nvlist(libzfs_handle_t *hdl, const char *fsname, const char *fromsnap, in gather_nvlist() 946 libzfs_handle_t *hdl = zhp->zfs_hdl; in estimate_ioctl() 1010 libzfs_handle_t *hdl = zhp->zfs_hdl; in dump_ioctl() [all …]
|
H A D | libzfs_import.c | 223 add_config(libzfs_handle_t *hdl, pool_list_t *pl, const char *path, in add_config() 360 pool_active(libzfs_handle_t *hdl, const char *name, uint64_t guid, in pool_active() 384 refresh_config(libzfs_handle_t *hdl, nvlist_t *config) in refresh_config() 444 get_configs(libzfs_handle_t *hdl, pool_list_t *pl, boolean_t active_ok) in get_configs() 925 libzfs_handle_t *rn_hdl; 1164 zpool_find_import_impl(libzfs_handle_t *hdl, importargs_t *iarg) in zpool_find_import_impl() 1412 zpool_find_import(libzfs_handle_t *hdl, int argc, char **argv) in zpool_find_import() 1428 zpool_find_import_cached(libzfs_handle_t *hdl, const char *cachefile, in zpool_find_import_cached() 1562 zpool_search_import(libzfs_handle_t *hdl, importargs_t *import) in zpool_search_import() 1637 zpool_in_use(libzfs_handle_t *hdl, int fd, pool_state_t *state, char **namestr, in zpool_in_use()
|
H A D | libzfs_diff.c | 388 libzfs_handle_t *lhdl = di->zhp->zfs_hdl; in write_free_diffs() 518 libzfs_handle_t *hdl = di->zhp->zfs_hdl; in make_temp_snapshot() 564 libzfs_handle_t *hdl = di->zhp->zfs_hdl; in get_snapshot_names()
|
H A D | libzfs_changelist.c | 168 libzfs_handle_t *hdl; in changelist_postfix()
|
/netbsd-src/external/cddl/osnet/dist/cmd/zfs/ |
H A D | zfs_util.h | 36 libzfs_handle_t *g_zfs;
|
H A D | zfs_main.c | 84 libzfs_handle_t *g_zfs;
|
/netbsd-src/external/cddl/osnet/dist/cmd/zinject/ |
H A D | zinject.h | 64 extern libzfs_handle_t *g_zfs;
|
H A D | zinject.c | 157 libzfs_handle_t *g_zfs;
|
/netbsd-src/external/cddl/osnet/dist/cmd/zpool/ |
H A D | zpool_util.h | 66 libzfs_handle_t *g_zfs;
|
/netbsd-src/external/cddl/osnet/dist/cmd/zhack/ |
H A D | zhack.c | 57 libzfs_handle_t *g_zfs;
|
/netbsd-src/external/cddl/osnet/dist/cmd/zdb/ |
H A D | zdb.c | 95 static libzfs_handle_t *g_zfs;
|