Changeset View
Changeset View
Standalone View
Standalone View
cddl/contrib/opensolaris/lib/libzfs/common/libzfs.h
Show First 20 Lines • Show All 207 Lines • ▼ Show 20 Lines | |||||
extern zpool_handle_t *zpool_open(libzfs_handle_t *, const char *); | extern zpool_handle_t *zpool_open(libzfs_handle_t *, const char *); | ||||
extern zpool_handle_t *zpool_open_canfail(libzfs_handle_t *, const char *); | extern zpool_handle_t *zpool_open_canfail(libzfs_handle_t *, const char *); | ||||
extern void zpool_close(zpool_handle_t *); | extern void zpool_close(zpool_handle_t *); | ||||
extern const char *zpool_get_name(zpool_handle_t *); | extern const char *zpool_get_name(zpool_handle_t *); | ||||
extern int zpool_get_state(zpool_handle_t *); | extern int zpool_get_state(zpool_handle_t *); | ||||
extern const char *zpool_state_to_name(vdev_state_t, vdev_aux_t); | extern const char *zpool_state_to_name(vdev_state_t, vdev_aux_t); | ||||
extern const char *zpool_pool_state_to_name(pool_state_t); | extern const char *zpool_pool_state_to_name(pool_state_t); | ||||
extern void zpool_free_handles(libzfs_handle_t *); | extern void zpool_free_handles(libzfs_handle_t *); | ||||
extern int zpool_nextboot(libzfs_handle_t *, uint64_t, uint64_t, const char *); | |||||
tsoome: It would be nice to have get/set nextboot interface, so we could have an way to verify the… | |||||
/* | /* | ||||
* Iterate over all active pools in the system. | * Iterate over all active pools in the system. | ||||
*/ | */ | ||||
typedef int (*zpool_iter_f)(zpool_handle_t *, void *); | typedef int (*zpool_iter_f)(zpool_handle_t *, void *); | ||||
extern int zpool_iter(libzfs_handle_t *, zpool_iter_f, void *); | extern int zpool_iter(libzfs_handle_t *, zpool_iter_f, void *); | ||||
extern boolean_t zpool_skip_pool(const char *); | extern boolean_t zpool_skip_pool(const char *); | ||||
▲ Show 20 Lines • Show All 589 Lines • Show Last 20 Lines |
It would be nice to have get/set nextboot interface, so we could have an way to verify the nextboot setup.