Changeset View
Changeset View
Standalone View
Standalone View
head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs.h
Show First 20 Lines • Show All 573 Lines • ▼ Show 20 Lines | |||||
extern int zfs_iter_snapshots_sorted(zfs_handle_t *, zfs_iter_f, void *); | extern int zfs_iter_snapshots_sorted(zfs_handle_t *, zfs_iter_f, void *); | ||||
extern int zfs_iter_snapspec(zfs_handle_t *, const char *, zfs_iter_f, void *); | extern int zfs_iter_snapspec(zfs_handle_t *, const char *, zfs_iter_f, void *); | ||||
extern int zfs_iter_bookmarks(zfs_handle_t *, zfs_iter_f, void *); | extern int zfs_iter_bookmarks(zfs_handle_t *, zfs_iter_f, void *); | ||||
typedef struct get_all_cb { | typedef struct get_all_cb { | ||||
zfs_handle_t **cb_handles; | zfs_handle_t **cb_handles; | ||||
size_t cb_alloc; | size_t cb_alloc; | ||||
size_t cb_used; | size_t cb_used; | ||||
boolean_t cb_verbose; | |||||
int (*cb_getone)(zfs_handle_t *, void *); | |||||
} get_all_cb_t; | } get_all_cb_t; | ||||
void zfs_foreach_mountpoint(libzfs_handle_t *, zfs_handle_t **, size_t, | |||||
zfs_iter_f, void*, boolean_t); | |||||
void libzfs_add_handle(get_all_cb_t *, zfs_handle_t *); | void libzfs_add_handle(get_all_cb_t *, zfs_handle_t *); | ||||
int libzfs_dataset_cmp(const void *, const void *); | |||||
/* | /* | ||||
* Functions to create and destroy datasets. | * Functions to create and destroy datasets. | ||||
*/ | */ | ||||
extern int zfs_create(libzfs_handle_t *, const char *, zfs_type_t, | extern int zfs_create(libzfs_handle_t *, const char *, zfs_type_t, | ||||
nvlist_t *); | nvlist_t *); | ||||
extern int zfs_create_ancestors(libzfs_handle_t *, const char *); | extern int zfs_create_ancestors(libzfs_handle_t *, const char *); | ||||
extern int zfs_destroy(zfs_handle_t *, boolean_t); | extern int zfs_destroy(zfs_handle_t *, boolean_t); | ||||
▲ Show 20 Lines • Show All 266 Lines • Show Last 20 Lines |