Home
last modified time | relevance | path

Searched refs:libzfs_handle_t (Results 1 – 25 of 55) sorted by relevance

123

/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_impl.h100 libzfs_handle_t *zfs_hdl;
121 libzfs_handle_t *zpool_hdl;
194 int zfs_error(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);
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 *);
244 int create_parents(libzfs_handle_t *, char *, int);
258 void namespace_clear(libzfs_handle_t *);
[all …]
H A Dlibzfs.h206 typedef struct libzfs_handle libzfs_handle_t; typedef
211 extern libzfs_handle_t *libzfs_init(void);
212 extern void libzfs_fini(libzfs_handle_t *);
215 extern libzfs_handle_t *zfs_get_handle(zfs_handle_t *);
222 extern int libzfs_errno(libzfs_handle_t *);
223 extern const char *libzfs_error_action(libzfs_handle_t *);
226 extern void libzfs_mnttab_init(libzfs_handle_t *);
227 extern void libzfs_mnttab_fini(libzfs_handle_t *);
245 extern void zpool_free_handles(libzfs_handle_t *);
851 extern void libzfs_fru_refresh(libzfs_handle_t *);
[all …]
H A Dlibzfs_util.c59 libzfs_errno(libzfs_handle_t *hdl) in libzfs_errno()
65 libzfs_error_action(libzfs_handle_t *hdl) in libzfs_error_action()
71 libzfs_error_description(libzfs_handle_t *hdl) in libzfs_error_description()
595 no_memory(libzfs_handle_t *hdl) in no_memory()
604 zfs_alloc(libzfs_handle_t *hdl, size_t size) in zfs_alloc()
674 libzfs_handle_t *
677 libzfs_handle_t *hdl; in libzfs_init()
741 libzfs_fini(libzfs_handle_t *hdl) in libzfs_fini()
760 libzfs_handle_t *
766 libzfs_handle_t *
[all …]
H A Dlibzfs_fru.c110 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 Dlibzfs_mount.c346 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_mount()
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()
747 zfs_init_libshare(libzfs_handle_t *zhandle, int service) in zfs_init_libshare()
766 zfs_uninit_libshare(libzfs_handle_t *zhandle) in zfs_uninit_libshare()
844 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_share_proto()
1013 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_unshare_proto()
1320 libzfs_handle_t *mnt_hdl;
1334 zfs_dispatch_mount(libzfs_handle_t *hdl, zfs_handle_t **handles, in zfs_dispatch_mount()
[all …]
H A Dlibzfs_config.c79 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 Dlibzfs_import.c72 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 Dlibzfs_pool.c79 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_get_all_props()
783 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_expand_proplist()
1358 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_destroy()
1399 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_checkpoint()
1420 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_discard_checkpoint()
1444 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_add()
2101 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_scan()
2875 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_vdev_online()
2948 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_vdev_offline()
2996 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_vdev_fault()
[all …]
H A Dlibzfs_dataset.c227 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()
1795 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_prop_set()
1829 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_prop_set_list()
1998 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_prop_inherit()
3901 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_clone()
[all …]
H A Dlibzfs_crypto.c76 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 Dlibzfs_sendrecv.c70 static int guid_to_name(libzfs_handle_t *, const char *,
78 libzfs_handle_t *dedup_hdl;
1037 libzfs_handle_t *hdl = zhp->zfs_hdl; in estimate_ioctl()
1108 libzfs_handle_t *hdl = zhp->zfs_hdl; in dump_ioctl()
1206 libzfs_handle_t *hdl = zhp->zfs_hdl; in send_progress_thread()
2169 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_send_one()
2229 recv_read(libzfs_handle_t *hdl, int fd, void *buf, int ilen, in recv_read()
2421 recv_promote(libzfs_handle_t *hdl, const char *fsname, in recv_promote()
2622 created_before(libzfs_handle_t *hdl, avl_tree_t *avl, in created_before()
3316 recv_skip(libzfs_handle_t *hdl, int fd, boolean_t byteswap) in recv_skip()
[all …]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dinuse_zpool.c54 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 Dvnode_zvol.c63 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 Dzfs_retire.c53 libzfs_handle_t *zrd_hdl;
97 find_vdev(libzfs_handle_t *zhdl, nvlist_t *nv, const char *search_fru, in find_vdev()
151 find_by_guid(libzfs_handle_t *zhdl, uint64_t pool_guid, uint64_t vdev_guid, in find_by_guid()
212 find_by_fru(libzfs_handle_t *zhdl, const char *fru, nvlist_t **vdevp) in find_by_fru()
239 libzfs_handle_t *zhdl = zdp->zrd_hdl; in replace_with_spare()
386 libzfs_handle_t *zhdl = zdp->zrd_hdl; in zfs_retire_recv()
609 libzfs_handle_t *zhdl; in _fmd_init()
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_vss.c106 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 Dlzbe_device.c30 libzfs_handle_t *hdl; in lzbe_set_boot_device()
116 libzfs_handle_t *hdl; in lzbe_get_boot_device()
H A Dlzbe_pair.c30 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 Dlibshare_zfs.c386 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 Drpc.rquotad.c84 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 Dlibbe_priv.h152 extern libzfs_handle_t *g_zfs;
206 int zfs_err_to_be_err(libzfs_handle_t *);
/illumos-gate/usr/src/cmd/zfs/
H A Dzfs_util.h36 extern libzfs_handle_t *g_zfs;
/illumos-gate/usr/src/test/zfs-tests/tests/functional/libzfs/
H A Dmany_fds.c44 libzfs_handle_t *h; in main()
/illumos-gate/usr/src/cmd/fs.d/ufs/quota/
H A Dquota.c95 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/cmd/zinject/
H A Dzinject.h64 extern libzfs_handle_t *g_zfs;
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-diagnosis/
H A Dzfs_de.c360 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()

123