/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_impl.h | 100 libzfs_handle_t *zfs_hdl; 121 libzfs_handle_t *zpool_hdl; 194 int zfs_error(libzfs_handle_t *, int, const char *); 195 int zfs_error_fmt(libzfs_handle_t *, int, const char *, ...); 196 void zfs_error_aux(libzfs_handle_t *, const char *, ...); 197 void *zfs_alloc(libzfs_handle_t *, size_t); 198 void *zfs_realloc(libzfs_handle_t *, void *, size_t, size_t); 199 char *zfs_asprintf(libzfs_handle_t *, const char *, ...); 200 char *zfs_strdup(libzfs_handle_t *, const char *); 201 int no_memory(libzfs_handle_t *); [all …]
|
H A D | libzfs.h | 206 typedef struct libzfs_handle libzfs_handle_t; typedef 211 extern libzfs_handle_t *libzfs_init(void); 212 extern void libzfs_fini(libzfs_handle_t *); 214 extern libzfs_handle_t *zpool_get_handle(zpool_handle_t *); 215 extern libzfs_handle_t *zfs_get_handle(zfs_handle_t *); 217 extern void libzfs_print_on_error(libzfs_handle_t *, boolean_t); 220 extern int zpool_log_history(libzfs_handle_t *, const char *); 222 extern int libzfs_errno(libzfs_handle_t *); 223 extern const char *libzfs_error_action(libzfs_handle_t *); 224 extern const char *libzfs_error_description(libzfs_handle_t *); [all …]
|
H A D | libzfs_util.c | 60 libzfs_errno(libzfs_handle_t *hdl) in libzfs_errno() 66 libzfs_error_action(libzfs_handle_t *hdl) in libzfs_error_action() 72 libzfs_error_description(libzfs_handle_t *hdl) in libzfs_error_description() 291 zfs_error_aux(libzfs_handle_t *hdl, const char *fmt, ...) in zfs_error_aux() 305 zfs_verror(libzfs_handle_t *hdl, int error, const char *fmt, va_list ap) in zfs_verror() 331 zfs_error(libzfs_handle_t *hdl, int error, const char *msg) in zfs_error() 338 zfs_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) in zfs_error_fmt() 352 zfs_common_error(libzfs_handle_t *hdl, int error, const char *fmt, in zfs_common_error() 382 zfs_standard_error(libzfs_handle_t *hdl, int error, const char *msg) in zfs_standard_error() 389 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 | 110 libzfs_handle_t *hdl = arg; in libzfs_fru_gather() 264 libzfs_fru_refresh(libzfs_handle_t *hdl) in libzfs_fru_refresh() 314 libzfs_fru_lookup(libzfs_handle_t *hdl, const char *devpath) in libzfs_fru_lookup() 340 libzfs_fru_devpath(libzfs_handle_t *hdl, const char *fru) in libzfs_fru_devpath() 386 libzfs_fru_compare(libzfs_handle_t *hdl, const char *a, const char *b) in libzfs_fru_compare() 404 libzfs_fru_notself(libzfs_handle_t *hdl, const char *fru) in libzfs_fru_notself() 434 libzfs_fru_clear(libzfs_handle_t *hdl, boolean_t final) in libzfs_fru_clear()
|
H A D | libzfs_mount.c | 140 is_shared(libzfs_handle_t *hdl, const char *mountpoint, zfs_share_proto_t proto) in is_shared() 283 is_mounted(libzfs_handle_t *zfs_hdl, const char *special, char **where) in is_mounted() 346 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_mount() 467 unmount_one(libzfs_handle_t *hdl, const char *mountpoint, int flags) in unmount_one() 485 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_unmount() 627 static libzfs_handle_t *(*_sa_get_zfs_handle)(sa_handle_t); 674 _sa_get_zfs_handle = (libzfs_handle_t *(*)(sa_handle_t)) in _zfs_init_libshare() 713 zfs_init_libshare_impl(libzfs_handle_t *zhandle, int service, void *arg) in zfs_init_libshare_impl() 747 zfs_init_libshare(libzfs_handle_t *zhandle, int service) in zfs_init_libshare() 753 zfs_init_libshare_arg(libzfs_handle_t *zhandle, int service, void *arg) in zfs_init_libshare_arg() [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() 389 zpool_iter(libzfs_handle_t *hdl, zpool_iter_f func, void *data) in zpool_iter() 434 zfs_iter_root(libzfs_handle_t *hdl, zfs_iter_f func, void *data) in zfs_iter_root()
|
H A D | libzfs_import.c | 72 pool_active(libzfs_handle_t *hdl, const char *name, uint64_t guid, in pool_active() 96 refresh_config(libzfs_handle_t *hdl, nvlist_t *config) in refresh_config() 137 return (refresh_config((libzfs_handle_t *)handle, tryconfig)); in refresh_config_libzfs() 144 return (pool_active((libzfs_handle_t *)handle, name, guid, isactive)); in pool_active_libzfs() 323 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 | 79 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_get_all_props() 445 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, in zpool_valid_proplist() 783 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_expand_proplist() 945 zpool_name_valid(libzfs_handle_t *hdl, boolean_t isopen, const char *pool) in zpool_name_valid() 1038 zpool_open_canfail(libzfs_handle_t *hdl, const char *pool) in zpool_open_canfail() 1080 zpool_open_silent(libzfs_handle_t *hdl, const char *pool, zpool_handle_t **ret) in zpool_open_silent() 1111 zpool_open(libzfs_handle_t *hdl, const char *pool) in zpool_open() 1189 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, in zpool_create() 1358 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_destroy() 1399 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_checkpoint() [all …]
|
H A D | libzfs_dataset.c | 108 zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type, in zfs_validate_name() 227 libzfs_handle_t *hdl = zhp->zfs_hdl; in process_user_props() 256 libzfs_handle_t *hdl = zhp->zfs_hdl; in zpool_add_handle() 270 libzfs_handle_t *hdl = zhp->zfs_hdl; in zpool_find_handle() 304 zpool_free_handles(libzfs_handle_t *hdl) in zpool_free_handles() 322 libzfs_handle_t *hdl = zhp->zfs_hdl; in get_stats_ioctl() 344 libzfs_handle_t *hdl = zhp->zfs_hdl; in get_recvd_props_ioctl() 469 make_dataset_handle(libzfs_handle_t *hdl, const char *path) in make_dataset_handle() 498 make_dataset_handle_zc(libzfs_handle_t *hdl, zfs_cmd_t *zc) in make_dataset_handle_zc() 675 zfs_open(libzfs_handle_t *hdl, const char *path, int types) in zfs_open() [all …]
|
H A D | libzfs_crypto.c | 76 static int get_key_material_file(libzfs_handle_t *, const char *, const char *, 85 zfs_prop_parse_keylocation(libzfs_handle_t *restrict hdl, const char *str, in zfs_prop_parse_keylocation() 188 validate_key(libzfs_handle_t *hdl, zfs_keyformat_t keyformat, in validate_key() 339 get_key_interactive(libzfs_handle_t *restrict hdl, const char *fsname, in get_key_interactive() 462 get_key_material_file(libzfs_handle_t *hdl, const char *uri, in get_key_material_file() 499 get_key_material(libzfs_handle_t *hdl, boolean_t do_verify, boolean_t newkey, in get_key_material() 624 derive_key(libzfs_handle_t *hdl, zfs_keyformat_t format, uint64_t iters, in derive_key() 698 populate_create_encryption_params_nvlists(libzfs_handle_t *hdl, in populate_create_encryption_params_nvlists() 857 zfs_crypto_create(libzfs_handle_t *hdl, char *parent_name, nvlist_t *props, in zfs_crypto_create() 1025 zfs_crypto_clone_check(libzfs_handle_t *hdl, zfs_handle_t *origin_zhp, in zfs_crypto_clone_check() [all …]
|
H A D | libzfs_sendrecv.c | 65 extern void zfs_setprop_error(libzfs_handle_t *, zfs_prop_t, int, char *); 67 static int zfs_receive_impl(libzfs_handle_t *, const char *, const char *, 70 static int guid_to_name(libzfs_handle_t *, const char *, 78 libzfs_handle_t *dedup_hdl; 135 ddt_hash_append(libzfs_handle_t *hdl, dedup_table_t *ddt, dedup_entry_t **ddepp, in ddt_hash_append() 173 ddt_update(libzfs_handle_t *hdl, dedup_table_t *ddt, zio_cksum_t *cs, in ddt_update() 788 get_snap_txg(libzfs_handle_t *hdl, const char *fs, const char *snap) in get_snap_txg() 965 gather_nvlist(libzfs_handle_t *hdl, const char *fsname, const char *fromsnap, in gather_nvlist() 1037 libzfs_handle_t *hdl = zhp->zfs_hdl; in estimate_ioctl() 1108 libzfs_handle_t *hdl = zhp->zfs_hdl; in dump_ioctl() [all …]
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_zpool.c | 54 static int (*zfsdl_zpool_in_use)(libzfs_handle_t *hdl, int fd, 56 static libzfs_handle_t *(*zfsdl_libzfs_init)(boolean_t); 61 static libzfs_handle_t *zfs_hdl; 155 if ((zfsdl_libzfs_init = (libzfs_handle_t *(*)(boolean_t)) in init_zpool() 157 (zfsdl_zpool_in_use = (int (*)(libzfs_handle_t *, int, in init_zpool()
|
/illumos-gate/usr/src/cmd/bhyve/test/tests/mevent/ |
H A D | vnode_zvol.c | 63 destroy_zpool(libzfs_handle_t *zfshdl, zpool_handle_t *poolhdl, in destroy_zpool() 82 create_zpool(libzfs_handle_t *zfshdl, const char *pool, const char *file) in create_zpool() 110 create_zvol(libzfs_handle_t *zfshdl, const char *vol) in create_zvol() 133 libzfs_handle_t *zfshdl; in main()
|
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-retire/ |
H A D | zfs_retire.c | 54 libzfs_handle_t *zrd_hdl; 98 find_vdev(libzfs_handle_t *zhdl, nvlist_t *nv, const char *search_fru, in find_vdev() 152 find_by_guid(libzfs_handle_t *zhdl, uint64_t pool_guid, uint64_t vdev_guid, in find_by_guid() 213 find_by_fru(libzfs_handle_t *zhdl, const char *fru, nvlist_t **vdevp) in find_by_fru() 270 libzfs_handle_t *zhdl = zdp->zrd_hdl; in replace_with_spare() 431 libzfs_handle_t *zhdl = zdp->zrd_hdl; in zfs_retire_recv() 654 libzfs_handle_t *zhdl; in _fmd_init()
|
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_vss.c | 106 libzfs_handle_t *libhd; in smbd_vss_get_count() 152 libzfs_handle_t *libhd; in smbd_vss_get_snapshots() 242 libzfs_handle_t *libhd; in smbd_vss_map_gmttoken()
|
/illumos-gate/usr/src/lib/libzfsbootenv/common/ |
H A D | lzbe_device.c | 30 libzfs_handle_t *hdl; in lzbe_set_boot_device() 116 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()
|
/illumos-gate/usr/src/lib/libshare/common/ |
H A D | libshare_zfs.c | 386 libzfs_handle_t *libhandle; in get_zfs_property() 420 libzfs_handle_t *libhandle; in sa_zfs_is_shared() 938 libzfs_handle_t **zfs_libhandle, sa_group_t *zfsgroup, int *err) in prep_zfs_handle_and_group() 961 libzfs_handle_t *zfs_libhandle; in sa_get_zfs_shares() 998 libzfs_handle_t *zfs_libhandle; in sa_get_zfs_share() 1022 libzfs_handle_t *zfs_libhandle; in sa_get_one_zfs_share() 1067 libzfs_handle_t *zfs_libhandle; in sa_get_zfs_share_for_name() 1443 libzfs_handle_t *libhandle; in sa_share_zfs() 1549 libzfs_handle_t * 1563 sa_zfs_get_info(libzfs_handle_t *libzfs, char *path, char *mountpointp, in sa_zfs_get_info() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/rquotad/ |
H A D | rpc.rquotad.c | 84 static libzfs_handle_t *(*_libzfs_init)(void); 85 static void (*_libzfs_fini)(libzfs_handle_t *); 86 static zfs_handle_t *(*_zfs_open)(libzfs_handle_t *, const char *, int); 90 static libzfs_handle_t *g_zfs = NULL; 105 _libzfs_init = (libzfs_handle_t *(*)(void))dlsym(hdl, in load_libzfs()
|
/illumos-gate/usr/src/lib/libbe/common/ |
H A D | libbe_priv.h | 152 extern libzfs_handle_t *g_zfs; 206 int zfs_err_to_be_err(libzfs_handle_t *);
|
/illumos-gate/usr/src/cmd/zfs/ |
H A D | zfs_util.h | 36 extern libzfs_handle_t *g_zfs;
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quota/ |
H A D | quota.c | 95 static libzfs_handle_t *(*_libzfs_init)(void); 96 static void (*_libzfs_fini)(libzfs_handle_t *); 97 static zfs_handle_t *(*_zfs_open)(libzfs_handle_t *, const char *, int); 101 static libzfs_handle_t *g_zfs = NULL; 116 _libzfs_init = (libzfs_handle_t *(*)(void))dlsym(hdl, in load_libzfs()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/libzfs/ |
H A D | many_fds.c | 44 libzfs_handle_t *h; in main()
|
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-diagnosis/ |
H A D | zfs_de.c | 360 libzfs_handle_t *zhdl = fmd_hdl_getspecific(hdl); in zfs_purge_cases() 423 libzfs_handle_t *zhdl = fmd_hdl_getspecific(hdl); in zfs_case_solve() 560 libzfs_handle_t *zhdl; in zfs_fm_recv() 699 libzfs_handle_t *zhdl = fmd_hdl_getspecific(hdl); in zfs_fm_recv() 1078 libzfs_handle_t *zhdl; in _fmd_init() 1129 libzfs_handle_t *zhdl; in _fmd_fini()
|
/illumos-gate/usr/src/cmd/zinject/ |
H A D | zinject.h | 64 extern libzfs_handle_t *g_zfs;
|