Lines Matching defs:zfs_handle_t
196 typedef struct zfs_handle zfs_handle_t;
208 extern libzfs_handle_t *zfs_get_handle(zfs_handle_t *);
348 struct zprop_list *pl_alias; /* resolution depends on zfs_handle_t */
421 extern int zfs_prop_remap(zfs_handle_t *, int, int, boolean_t *);
422 extern int zfs_prop_get_unaliased(zfs_handle_t *, zfs_prop_t, char *, size_t,
424 extern int zfs_prop_set_unaliased(zfs_handle_t *, const char *, const char *,
427 extern int zfs_zprop_get(zfs_handle_t *, const zpropdef_t *, char *, size_t,
429 extern void zfs_get_collapsed_sublist(zfs_handle_t *, const zpropdef_t *,
431 extern void zfs_get_collapsed_source(zfs_handle_t *, zfs_prop_t *,
433 extern void zfs_share_protocols_source(zfs_handle_t *, zprop_source_t *,
477 extern int zfs_expand_proplist(zfs_handle_t *, zprop_list_t **, int, boolean_t,
479 extern void zfs_prune_proplist(zfs_handle_t *, uint8_t *);
482 extern int zfs_proplist_resolve_alias(zfs_handle_t *, zprop_list_t *,
523 nvlist_t *, uint64_t, zfs_handle_t *, zfs_handle_t *, const char *,
547 extern int zfs_prop_set(zfs_handle_t *, const char *, const char *);
548 extern int zfs_prop_set_extended(zfs_handle_t *, const char *, const char *,
550 extern int zfs_prop_set_int(zfs_handle_t *, zfs_prop_t, uint64_t);
551 extern int zfs_prop_get(zfs_handle_t *, zfs_prop_t, char *, size_t,
554 extern int zfs_prop_get_persistent(zfs_handle_t *, zfs_prop_t, char *, size_t,
556 extern int zfs_prop_get_recvd(zfs_handle_t *, const char *, char *, size_t,
558 extern int zfs_prop_get_numeric(zfs_handle_t *, zfs_prop_t, uint64_t *,
560 extern int zfs_prop_get_userquota_int(zfs_handle_t *zhp, const char *propname,
562 extern int zfs_prop_get_userquota(zfs_handle_t *zhp, const char *propname,
564 extern uint64_t zfs_prop_get_int(zfs_handle_t *, zfs_prop_t);
565 extern int zfs_prop_inherit(zfs_handle_t *, const char *, boolean_t);
566 extern int zfs_prop_predict(zfs_handle_t *, const char *, void *,
568 extern int zfs_props_predict(zfs_handle_t *, nvlist_t *,
572 extern nvlist_t *zfs_get_user_props(zfs_handle_t *);
573 extern nvlist_t *zfs_get_recvd_props(zfs_handle_t *);
725 extern int zfs_crypto_rename_check(zfs_handle_t *, struct zfs_cmd *);
727 extern boolean_t zfs_valid_set_keysource_change(zfs_handle_t *, char *);
728 extern boolean_t zfs_mount_crypto_check(zfs_handle_t *);
730 extern void zfs_crypto_set_key(zfs_handle_t *, char *, size_t);
731 extern void zfs_crypto_set_clone_newkey(zfs_handle_t *);
737 extern zfs_handle_t *zfs_open(libzfs_handle_t *, const char *, int);
738 extern zfs_handle_t *zfs_open_quiet(libzfs_handle_t *hdl, const char *path,
740 extern void zfs_close(zfs_handle_t *);
741 extern zfs_type_t zfs_get_type(const zfs_handle_t *);
742 extern const char *zfs_get_name(const zfs_handle_t *);
743 extern boolean_t zfs_is_snapshot(const zfs_handle_t *);
744 extern boolean_t zfs_is_share(const zfs_handle_t *);
745 extern boolean_t zfs_is_auto_share(const zfs_handle_t *);
746 extern zfs_handle_t *zfs_share_to_fs(const zfs_handle_t *);
747 extern zfs_handle_t *zfs_fs_to_auto_share(const zfs_handle_t *);
748 extern zpool_handle_t *zfs_get_pool_handle(const zfs_handle_t *);
750 struct zfs_handle_cache; /* opaque zfs_handle_t cache */
755 * zfs_handle_t cache functions
760 extern zfs_handle_t *zfs_cache_get(libzfs_handle_t *, const char *,
762 extern zfs_handle_t *zfs_cache_get_quiet(libzfs_handle_t *, const char *,
764 extern boolean_t zfs_cache_add(zfs_handle_cache_t *, zfs_handle_t *);
765 extern void zfs_cache_remove(zfs_handle_cache_t *, zfs_handle_t *);
767 zfs_type_t, zfs_handle_t **);
769 extern zfs_handle_cache_t *zfs_get_cache(zfs_handle_t *);
775 extern boolean_t zfs_is_cached(zfs_handle_t *);
776 extern void zfs_close_uncached(zfs_handle_t *);
781 typedef int (*zfs_iter_f)(zfs_handle_t *, void *);
783 extern int zfs_iter_children(zfs_handle_t *, zfs_iter_f, void *);
784 extern int zfs_iter_dependents(zfs_handle_t *, boolean_t, zfs_iter_f, void *);
785 extern int zfs_iter_filesystems(zfs_handle_t *, zfs_iter_f, void *);
786 extern int zfs_iter_snapshots(zfs_handle_t *, zfs_iter_f, void *);
787 extern int zfs_iter_snapshots_sorted(zfs_handle_t *, zfs_iter_f, void *);
788 extern int zfs_iter_shares(zfs_handle_t *, zfs_iter_f, void *);
790 extern int zfs_cache_iter_filesystems(libzfs_handle_t *, zfs_handle_t *,
792 extern int zfs_cache_iter_shares(libzfs_handle_t *, zfs_handle_t *,
794 extern int zfs_cache_iter_children(libzfs_handle_t *, zfs_handle_t *,
796 extern int zfs_cache_iter_dependents(zfs_handle_t *, boolean_t,
801 zfs_handle_t **cb_handles;
805 int (*cb_getone)(zfs_handle_t *, void *);
808 void libzfs_add_handle(get_all_cb_t *, zfs_handle_t *);
823 extern int zfs_destroy(zfs_handle_t *, boolean_t);
824 extern int zfs_destroy_snaps(zfs_handle_t *, char *, boolean_t);
825 extern int zfs_clone(zfs_handle_t *, const char *, nvlist_t *);
827 extern int zfs_rollback(zfs_handle_t *, zfs_handle_t *, boolean_t);
828 extern int zfs_rename(zfs_handle_t *, const char *, boolean_t);
856 typedef boolean_t (snapfilter_cb_t)(zfs_handle_t *, void *);
858 extern int zfs_send(zfs_handle_t *zhp, const char *fromsnap, const char *tosnap,
862 extern int zfs_promote(zfs_handle_t *);
863 extern int zfs_hold(zfs_handle_t *, const char *, const char *, boolean_t,
865 extern int zfs_release(zfs_handle_t *, const char *, const char *, boolean_t);
871 extern int zfs_userspace(zfs_handle_t *zhp, zfs_userquota_prop_t type,
933 extern int zfs_scan_diffs(zfs_handle_t *zhp, const char *fromsnap,
936 extern int zfs_show_diffs(zfs_handle_t *zhp, int outfd, const char *fromsnap,
956 extern void zfs_refresh_properties(zfs_handle_t *);
958 extern zfs_handle_t *zfs_path_to_zhandle(libzfs_handle_t *, const char *,
960 extern zfs_handle_t *zfs_path_to_zhandle_quiet(libzfs_handle_t *, const char *,
966 extern int zfs_spa_version(zfs_handle_t *, int *);
973 extern boolean_t zfs_is_mounted(zfs_handle_t *, char **);
974 extern int zfs_mount(zfs_handle_t *, const char *, int);
975 extern int zfs_mountall(zfs_handle_t *, int);
976 extern int zfs_unmount(zfs_handle_t *, const char *, int);
977 extern int zfs_unmountall(zfs_handle_t *, int);
989 extern int zfs_share_validate(zfs_handle_t *, nvlist_t *, uint32_t, char *,
991 extern int zfs_share_remove(zfs_handle_t *, const char *);
992 extern int zfs_share_read(zfs_handle_t *, const char *, nvlist_t **);
993 extern int zfs_share_read_init(zfs_handle_t *, boolean_t, void **);
994 extern int zfs_share_read_next(zfs_handle_t *, void *, nvlist_t **);
995 extern void zfs_share_read_fini(zfs_handle_t *, void *);
996 extern int zfs_share_write(zfs_handle_t *, nvlist_t *, boolean_t, boolean_t);
997 extern int zfs_share_parse(zfs_handle_t *, const char *, int, nvlist_t **);
998 extern int zfs_share_merge(zfs_handle_t *, nvlist_t *, nvlist_t *, int);
1002 extern libshare_handle_t *zfs_get_libshare(zfs_handle_t *);
1008 extern boolean_t zfs_supports_zfs_shares(zfs_handle_t *, int);
1014 extern boolean_t zfs_is_shared(zfs_handle_t *);
1017 extern int zfs_share(zfs_handle_t *);
1018 extern int zfs_unshare(zfs_handle_t *);
1019 extern int zfs_share_one(zfs_handle_t *);
1020 extern int zfs_unshare_one(zfs_handle_t *);
1021 extern boolean_t zfs_is_sharing_requested(zfs_handle_t *);
1022 extern int zfs_get_mountpoint(zfs_handle_t *, char *, size_t);
1023 extern int zfs_get_sharepoint(zfs_handle_t *, char *, size_t);
1024 extern void zfs_disable_auto_share(zfs_handle_t *);
1029 boolean_t zfs_is_sharing_enabled_mntpnt(zfs_handle_t *, boolean_t *,
1031 extern boolean_t zfs_is_shared_nfs(zfs_handle_t *, char **);
1032 extern boolean_t zfs_is_shared_smb(zfs_handle_t *, char **);
1033 extern int zfs_share_nfs(zfs_handle_t *);
1034 extern int zfs_share_smb(zfs_handle_t *);
1035 extern int zfs_shareall(zfs_handle_t *);
1036 extern int zfs_unshare_nfs(zfs_handle_t *, const char *);
1037 extern int zfs_unshare_smb(zfs_handle_t *, const char *);
1038 extern int zfs_unshareall_nfs(zfs_handle_t *);
1039 extern int zfs_unshareall_smb(zfs_handle_t *);
1040 extern int zfs_unshareall_bypath(zfs_handle_t *, const char *);
1041 extern int zfs_unshareall(zfs_handle_t *);
1054 extern void zfssa_share_notify(zfs_handle_t *, nvlist_t *);
1055 extern int zfssa_add_share_notification(zfs_handle_t *, nvlist_t *,
1067 extern boolean_t zfs_is_encrypted(zfs_handle_t *);
1068 extern boolean_t zfs_changing_key(zfs_handle_t *);
1070 extern int zfs_key_load(zfs_handle_t *, boolean_t, boolean_t, boolean_t);
1071 extern int zfs_key_unload(zfs_handle_t *, boolean_t);
1072 extern int zfs_key_change(zfs_handle_t *, boolean_t, nvlist_t *);
1073 extern int zfs_key_new(zfs_handle_t *);