Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs.h204 typedef struct zfs_handle zfs_handle_t; typedef
215 extern libzfs_handle_t *zfs_get_handle(zfs_handle_t *);
454 extern zfs_handle_t *zfs_open(libzfs_handle_t *, const char *, int);
455 extern zfs_handle_t *zfs_handle_dup(zfs_handle_t *);
456 extern void zfs_close(zfs_handle_t *);
457 extern zfs_type_t zfs_get_type(const zfs_handle_t *);
458 extern const char *zfs_get_name(const zfs_handle_t *);
459 extern zpool_handle_t *zfs_get_pool_handle(const zfs_handle_t *);
460 extern const char *zfs_get_pool_name(const zfs_handle_t *);
476 uint64_t, zfs_handle_t *, zpool_handle_t *, boolean_t, const char *);
[all …]
H A Dlibzfs_mount.c100 static int zfs_share_proto(zfs_handle_t *, zfs_share_proto_t *);
101 zfs_share_type_t zfs_is_shared_proto(zfs_handle_t *, char **,
297 zfs_is_mounted(zfs_handle_t *zhp, char **where) in zfs_is_mounted()
307 zfs_is_mountable(zfs_handle_t *zhp, char *buf, size_t buflen, in zfs_is_mountable()
341 zfs_mount(zfs_handle_t *zhp, const char *options, int flags) in zfs_mount()
483 zfs_unmount(zfs_handle_t *zhp, const char *mountpoint, int flags) in zfs_unmount()
527 zfs_unmountall(zfs_handle_t *zhp, int flags) in zfs_unmountall()
543 zfs_is_shared(zfs_handle_t *zhp) in zfs_is_shared()
559 zfs_share(zfs_handle_t *zhp) in zfs_share()
566 zfs_unshare(zfs_handle_t *zhp) in zfs_unshare()
[all …]
H A Dlibzfs_iter.c41 zfs_iter_clones(zfs_handle_t *zhp, zfs_iter_f func, void *data) in zfs_iter_clones()
51 zfs_handle_t *clone = zfs_open(zhp->zfs_hdl, nvpair_name(pair), in zfs_iter_clones()
63 zfs_do_list_ioctl(zfs_handle_t *zhp, int arg, zfs_cmd_t *zc) in zfs_do_list_ioctl()
106 zfs_iter_filesystems(zfs_handle_t *zhp, zfs_iter_f func, void *data) in zfs_iter_filesystems()
109 zfs_handle_t *nzhp; in zfs_iter_filesystems()
142 zfs_iter_snapshots(zfs_handle_t *zhp, boolean_t simple, zfs_iter_f func, in zfs_iter_snapshots()
146 zfs_handle_t *nzhp; in zfs_iter_snapshots()
180 zfs_iter_bookmarks(zfs_handle_t *zhp, zfs_iter_f func, void *data) in zfs_iter_bookmarks()
182 zfs_handle_t *nzhp; in zfs_iter_bookmarks()
231 zfs_handle_t *zn_handle;
[all …]
H A Dlibzfs_impl.h210 zfs_handle_t *make_dataset_handle_zc(libzfs_handle_t *, zfs_cmd_t *);
211 zfs_handle_t *make_dataset_simple_handle_zc(zfs_handle_t *, zfs_cmd_t *);
239 prop_changelist_t *changelist_gather(zfs_handle_t *, zfs_prop_t, int, int);
243 void remove_mountpoint(zfs_handle_t *);
247 zfs_handle_t *make_dataset_handle(libzfs_handle_t *, const char *);
248 zfs_handle_t *make_bookmark_handle(zfs_handle_t *, const char *,
267 extern int zfs_unshare_proto(zfs_handle_t *,
H A Dlibzfs_dataset.c225 process_user_props(zfs_handle_t *zhp, nvlist_t *props) in process_user_props()
254 zpool_add_handle(zfs_handle_t *zhp, const char *pool_name) in zpool_add_handle()
268 zpool_find_handle(zfs_handle_t *zhp, const char *pool_name, int len) in zpool_find_handle()
285 zpool_handle(zfs_handle_t *zhp) in zpool_handle()
320 get_stats_ioctl(zfs_handle_t *zhp, zfs_cmd_t *zc) in get_stats_ioctl()
342 get_recvd_props_ioctl(zfs_handle_t *zhp) in get_recvd_props_ioctl()
377 put_stats_zhdl(zfs_handle_t *zhp, zfs_cmd_t *zc) in put_stats_zhdl()
406 get_stats(zfs_handle_t *zhp) in get_stats()
425 zfs_refresh_properties(zfs_handle_t *zhp) in zfs_refresh_properties()
435 make_dataset_handle_common(zfs_handle_t *zhp, zfs_cmd_t *zc) in make_dataset_handle_common()
[all …]
H A Dlibzfs_changelist.c66 zfs_handle_t *cn_handle;
166 zfs_handle_t **zhandle_arr; in changelist_postfix()
204 num_datasets * sizeof (zfs_handle_t *)); in changelist_postfix()
423 change_one(zfs_handle_t *zhp, void *data) in change_one()
561 changelist_gather(zfs_handle_t *zhp, zfs_prop_t prop, int gather_flags, in changelist_gather()
566 zfs_handle_t *temp; in changelist_gather()
H A Dlibzfs_sendrecv.c82 zfs_handle_t *pa_zhp;
652 send_iterate_prop(zfs_handle_t *zhp, boolean_t received_only, nvlist_t *nv);
655 send_iterate_snap(zfs_handle_t *zhp, void *arg) in send_iterate_snap()
706 send_iterate_prop(zfs_handle_t *zhp, boolean_t received_only, nvlist_t *nv) in send_iterate_prop()
798 zfs_handle_t *zhp = zfs_open(hdl, name, ZFS_TYPE_SNAPSHOT); in get_snap_txg()
814 send_iterate_fs(zfs_handle_t *zhp, void *arg) in send_iterate_fs()
868 zfs_handle_t *origin = zfs_open(zhp->zfs_hdl, in send_iterate_fs()
970 zfs_handle_t *zhp; in gather_nvlist()
1033 estimate_ioctl(zfs_handle_t *zhp, uint64_t fromsnap_obj, in estimate_ioctl()
1103 dump_ioctl(zfs_handle_t *zhp, const char *fromsnap, uint64_t fromsnap_obj, in dump_ioctl()
[all …]
H A Dlibzfs_crypto.c699 zfs_handle_t *zhp, boolean_t newkey, zfs_keyformat_t keyformat, in populate_create_encryption_params_nvlists()
826 zfs_crypto_get_encryption_root(zfs_handle_t *zhp, boolean_t *is_encroot, in zfs_crypto_get_encryption_root()
865 zfs_handle_t *pzhp = NULL; in zfs_crypto_create()
1025 zfs_crypto_clone_check(libzfs_handle_t *hdl, zfs_handle_t *origin_zhp, in zfs_crypto_clone_check()
1050 load_keys_cb(zfs_handle_t *zhp, void *arg) in load_keys_cb()
1089 zfs_handle_t *zhp = NULL; in zfs_crypto_attempt_load_keys()
1121 zfs_crypto_load_key(zfs_handle_t *zhp, boolean_t noop, char *alt_keylocation) in zfs_crypto_load_key()
1286 zfs_crypto_unload_key(zfs_handle_t *zhp) in zfs_crypto_unload_key()
1367 zfs_crypto_verify_rewrap_nvlist(zfs_handle_t *zhp, nvlist_t *props, in zfs_crypto_verify_rewrap_nvlist()
1416 zfs_crypto_rewrap(zfs_handle_t *zhp, nvlist_t *raw_props, boolean_t inheritkey) in zfs_crypto_rewrap()
[all …]
/illumos-gate/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_dataset.c94 static int populate_DatasetBean(JNIEnv *, zfs_handle_t *, DatasetBean_t *);
96 JNIEnv *, zpool_handle_t *, zfs_handle_t *, PoolBean_t *);
98 JNIEnv *, zfs_handle_t *, FileSystemBean_t *);
100 JNIEnv *, zfs_handle_t *, VolumeBean_t *);
101 static int populate_SnapshotBean(JNIEnv *, zfs_handle_t *, SnapshotBean_t *);
103 JNIEnv *, zfs_handle_t *, FileSystemSnapshotBean_t *);
105 JNIEnv *, zfs_handle_t *, VolumeSnapshotBean_t *);
106 static jobject create_PoolBean(JNIEnv *, zpool_handle_t *, zfs_handle_t *);
107 static jobject create_FileSystemBean(JNIEnv *, zfs_handle_t *);
108 static jobject create_VolumeBean(JNIEnv *, zfs_handle_t *);
[all …]
H A Dlibzfs_jni_property.c56 static jobject create_BasicProperty(JNIEnv *, zfs_handle_t *,
58 static jobject create_BooleanProperty(JNIEnv *, zfs_handle_t *, zfs_prop_t);
59 static jobject create_LongProperty(JNIEnv *, zfs_handle_t *, zfs_prop_t);
60 static jobject create_StringProperty(JNIEnv *, zfs_handle_t *, zfs_prop_t);
61 static jobject create_ObjectProperty(JNIEnv *, zfs_handle_t *,
167 create_BasicProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop, in create_BasicProperty()
239 create_BooleanProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop) in create_BooleanProperty()
246 create_LongProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop) in create_LongProperty()
253 create_StringProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop) in create_StringProperty()
260 create_ObjectProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop, in create_ObjectProperty()
[all …]
H A Dlibzfs_jni_property.h43 jobjectArray zjni_get_Dataset_properties(JNIEnv *, zfs_handle_t *);
/illumos-gate/usr/src/lib/libbe/common/
H A Dlibbe_priv.h118 zfs_handle_t *clone_zhp; /* clone dataset to promote */
166 int be_mount_pool(zfs_handle_t *, char **, char **, boolean_t *);
167 int be_unmount_pool(zfs_handle_t *, char *, char *);
168 int be_mount_zone_root(zfs_handle_t *, be_mount_data_t *);
169 int be_unmount_zone_root(zfs_handle_t *, be_unmount_data_t *);
194 int be_update_zone_vfstab(zfs_handle_t *, char *, char *, char *,
196 int be_maxsize_avail(zfs_handle_t *, uint64_t *);
216 int be_find_active_zone_root(zfs_handle_t *, char *, char *, int);
234 int be_zfs_find_current_be_callback(zfs_handle_t *, void *);
H A Dbe_zones.c64 static int be_find_active_zone_root_callback(zfs_handle_t *, void *);
65 static int be_find_mounted_zone_root_callback(zfs_handle_t *, void *);
66 static boolean_t be_zone_get_active(zfs_handle_t *);
112 be_find_active_zone_root(zfs_handle_t *be_zhp, char *zonepath_ds, in be_find_active_zone_root()
116 zfs_handle_t *zhp; in be_find_active_zone_root()
207 zfs_handle_t *zhp = NULL; in be_find_mounted_zone_root()
360 zfs_handle_t *zhp = NULL; in be_zone_get_parent_uuid()
422 zfs_handle_t *zhp = NULL; in be_zone_set_parent_uuid()
523 be_find_active_zone_root_callback(zfs_handle_t *zhp, void *data) in be_find_active_zone_root_callback()
585 be_find_mounted_zone_root_callback(zfs_handle_t *zhp, void *data) in be_find_mounted_zone_root_callback()
[all …]
H A Dbe_mount.c63 static int be_mount_callback(zfs_handle_t *, void *);
64 static int be_unmount_callback(zfs_handle_t *, void *);
65 static int be_get_legacy_fs_callback(zfs_handle_t *, void *);
66 static int fix_mountpoint(zfs_handle_t *);
67 static int fix_mountpoint_callback(zfs_handle_t *, void *);
70 static int loopback_mount_shared_fs(zfs_handle_t *, be_mount_data_t *);
72 static int iter_shared_fs_callback(zfs_handle_t *, void *);
76 static int be_mount_root(zfs_handle_t *, char *);
77 static int be_unmount_root(zfs_handle_t *, be_unmount_data_t *);
78 static int be_mount_zones(zfs_handle_t *, be_mount_data_t *);
[all …]
H A Dbe_create.c62 static int be_destroy_zone_roots_callback(zfs_handle_t *, void *);
64 static int be_clone_fs_callback(zfs_handle_t *, void *);
65 static int be_destroy_callback(zfs_handle_t *, void *);
66 static int be_send_fs_callback(zfs_handle_t *, void *);
67 static int be_demote_callback(zfs_handle_t *, void *);
68 static int be_demote_find_clone_callback(zfs_handle_t *, void *);
69 static int be_has_snapshot_callback(zfs_handle_t *, void *);
70 static int be_demote_get_one_clone(zfs_handle_t *, void *);
72 static int be_prep_clone_send_fs(zfs_handle_t *, be_transaction_data_t *,
76 static int be_zone_root_exists_callback(zfs_handle_t *, void *);
[all …]
H A Dbe_snapshot.c49 static int be_rollback_check_callback(zfs_handle_t *, void *);
50 static int be_rollback_callback(zfs_handle_t *, void *);
255 zfs_handle_t *zhp = NULL; in be_rollback()
409 zfs_handle_t *zhp = NULL; in _be_create_snapshot()
639 zfs_handle_t *zhp; in _be_destroy_snapshot()
741 be_rollback_check_callback(zfs_handle_t *zhp, void *data) in be_rollback_check_callback()
783 be_rollback_callback(zfs_handle_t *zhp, void *data) in be_rollback_callback()
785 zfs_handle_t *zhp_snap = NULL; in be_rollback_callback()
H A Dbe_list.c69 static int be_add_children_callback(zfs_handle_t *zhp, void *data);
71 static int be_get_node_data(zfs_handle_t *, be_node_list_t *, char *,
74 static int be_get_ds_data(zfs_handle_t *, char *, be_dataset_list_t *,
76 static int be_get_ss_data(zfs_handle_t *, char *, be_snapshot_list_t *,
368 zfs_handle_t *zhp = NULL; in be_get_zone_be_list()
439 zfs_handle_t *zhp = NULL; in be_get_list_callback()
579 be_add_children_callback(zfs_handle_t *zhp, void *data) in be_add_children_callback()
998 be_get_node_data(zfs_handle_t *zhp, be_node_list_t *be_node, char *be_name, in be_get_node_data()
1190 zfs_handle_t *zfshp, in be_get_ds_data()
1286 zfs_handle_t *zfshp, in be_get_ss_data()
H A Dbe_activate.c66 static int be_promote_ds_callback(zfs_handle_t *, void *);
234 zfs_handle_t *zhp = NULL; in _be_activate()
574 zfs_handle_t *zhp = NULL; in set_canmount()
683 zfs_handle_t *zhp = NULL; in be_get_grub_vers()
684 zfs_handle_t *pool_zhp = NULL; in be_get_grub_vers()
1086 zfs_handle_t *zhp = NULL; in be_do_copy_grub_cap()
1341 zfs_handle_t *zhp = NULL; in be_do_installboot()
1481 zfs_handle_t *zhp = NULL; in be_promote_zone_ds()
1482 zfs_handle_t *z_zhp = NULL; in be_promote_zone_ds()
1622 be_promote_ds_callback(zfs_handle_t *zhp, void *data) in be_promote_ds_callback()
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_vss.c73 static int smbd_vss_iterate_count(zfs_handle_t *zhp, void *data);
74 static int smbd_vss_iterate_get_uint64_date(zfs_handle_t *zhp, void *data);
75 static int smbd_vss_iterate_map_gmttoken(zfs_handle_t *zhp, void *data);
107 zfs_handle_t *zfshd; in smbd_vss_get_count()
153 zfs_handle_t *zfshd; in smbd_vss_get_snapshots()
243 zfs_handle_t *zfshd; in smbd_vss_map_gmttoken()
322 smbd_vss_iterate_count(zfs_handle_t *zhp, void *data) in smbd_vss_iterate_count()
342 smbd_vss_iterate_get_uint64_date(zfs_handle_t *zhp, void *data) in smbd_vss_iterate_get_uint64_date()
367 smbd_vss_iterate_map_gmttoken(zfs_handle_t *zhp, void *data) in smbd_vss_iterate_map_gmttoken()
/illumos-gate/usr/src/cmd/zoneadm/
H A Dzfs.c59 zfs_handle_t *match_handle;
71 zfs_handle_t *clone_zhp; /* clone dataset to promote */
81 match_mountpoint(zfs_handle_t *zhp, void *data) in match_mountpoint()
153 static zfs_handle_t *
235 get_snap_max(zfs_handle_t *zhp, void *data) in get_snap_max()
267 take_snapshot(zfs_handle_t *zhp, char *snapshot_name, int snap_size, in take_snapshot()
373 zfs_handle_t *zhp; in clone_snap()
374 zfs_handle_t *clone; in clone_snap()
463 zfs_handle_t *zhp; in path2name()
521 has_dependent(zfs_handle_t *zhp, void *data) in has_dependent()
[all …]
/illumos-gate/usr/src/lib/libshare/common/
H A Dlibshare_zfs.c59 zfs_handle_t **cb_handles;
96 zfs_handle_t **zhp = impl_handle->zfs_list; in sa_zfs_fini()
130 get_one_filesystem(zfs_handle_t *zhp, void *data) in get_one_filesystem()
153 zfs_handle_t **handles; in get_one_filesystem()
160 handles = (zfs_handle_t **)calloc(1, in get_one_filesystem()
192 zfs_handle_t ***fslist, size_t *count) in get_all_filesystems()
220 zfs_handle_t **za = (zfs_handle_t **)a; in mountpoint_compare()
221 zfs_handle_t **zb = (zfs_handle_t **)b; in mountpoint_compare()
276 verify_zfs_handle(zfs_handle_t *hdl, const char *path, boolean_t search_mnttab) in verify_zfs_handle()
332 zfs_handle_t **zlist; in get_zfs_dataset()
[all …]
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_chkpnt.c70 ndmp_has_backup(zfs_handle_t *zhp, void *data) in ndmp_has_backup()
104 zfs_handle_t *zhp; in ndmp_has_backup_snapshot()
192 zfs_handle_t *zhp; in snapshot_hold()
221 zfs_handle_t *zhp; in snapshot_release()
292 zfs_handle_t *zhp; in snapshot_destroy()
/illumos-gate/usr/src/cmd/zfs/
H A Dzfs_iter.c54 zfs_handle_t *zn_handle;
76 zfs_include_snapshots(zfs_handle_t *zhp, callback_data_t *cb) in zfs_include_snapshots()
92 zfs_callback(zfs_handle_t *zhp, void *data) in zfs_callback()
211 zfs_handle_t *l = ((zfs_node_t *)larg)->zn_handle; in zfs_compare()
212 zfs_handle_t *r = ((zfs_node_t *)rarg)->zn_handle; in zfs_compare()
283 zfs_handle_t *l = ((zfs_node_t *)larg)->zn_handle; in zfs_sort()
284 zfs_handle_t *r = ((zfs_node_t *)rarg)->zn_handle; in zfs_sort()
443 zfs_handle_t *zhp; in zfs_for_each()
H A Dzfs_main.c700 zfs_handle_t *zhp = NULL; in zfs_mount_and_share()
755 zfs_handle_t *zhp = NULL; in zfs_do_clone()
1142 zfs_handle_t *cb_target;
1163 destroy_check_dependent(zfs_handle_t *zhp, void *data) in destroy_check_dependent()
1220 destroy_callback(zfs_handle_t *zhp, void *data) in destroy_callback()
1278 destroy_print_cb(zfs_handle_t *zhp, void *arg) in destroy_print_cb()
1320 destroy_print_snapshots(zfs_handle_t *fs_zhp, destroy_cbdata_t *cb) in destroy_print_snapshots()
1342 snapshot_to_nvl_cb(zfs_handle_t *zhp, void *arg) in snapshot_to_nvl_cb()
1364 gather_snapshots(zfs_handle_t *zhp, void *arg) in gather_snapshots()
1396 zfs_handle_t *zhp = zfs_open(g_zfs, nvpair_name(pair), in destroy_clones()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/rquotad/
H A Drpc.rquotad.c86 static zfs_handle_t *(*_zfs_open)(libzfs_handle_t *, const char *, int);
87 static void (*_zfs_close)(zfs_handle_t *);
88 static int (*_zfs_prop_get_userquota_int)(zfs_handle_t *, const char *,
108 _zfs_open = (zfs_handle_t *(*)())dlsym(hdl, "zfs_open"); in load_libzfs()
280 zfs_handle_t *zhp = NULL; in getzfsquota()

123