Lines Matching defs:zpool_handle_t

174 typedef struct zpool_handle zpool_handle_t;
183 extern libzfs_handle_t *zpool_get_handle(zpool_handle_t *);
207 extern zpool_handle_t *zpool_open(libzfs_handle_t *, const char *);
208 extern zpool_handle_t *zpool_open_canfail(libzfs_handle_t *, const char *);
209 extern void zpool_close(zpool_handle_t *);
210 extern const char *zpool_get_name(zpool_handle_t *);
211 extern int zpool_get_state(zpool_handle_t *);
219 typedef int (*zpool_iter_f)(zpool_handle_t *, void *);
228 extern int zpool_destroy(zpool_handle_t *, const char *);
229 extern int zpool_add(zpool_handle_t *, nvlist_t *);
242 extern int zpool_scan(zpool_handle_t *, pool_scan_func_t);
243 extern int zpool_clear(zpool_handle_t *, const char *, nvlist_t *);
244 extern int zpool_reguid(zpool_handle_t *);
245 extern int zpool_reopen(zpool_handle_t *);
247 extern int zpool_vdev_online(zpool_handle_t *, const char *, int,
249 extern int zpool_vdev_offline(zpool_handle_t *, const char *, boolean_t);
250 extern int zpool_vdev_attach(zpool_handle_t *, const char *,
252 extern int zpool_vdev_detach(zpool_handle_t *, const char *);
253 extern int zpool_vdev_remove(zpool_handle_t *, const char *);
254 extern int zpool_vdev_split(zpool_handle_t *, char *, nvlist_t **, nvlist_t *,
257 extern int zpool_vdev_fault(zpool_handle_t *, uint64_t, vdev_aux_t);
258 extern int zpool_vdev_degrade(zpool_handle_t *, uint64_t, vdev_aux_t);
259 extern int zpool_vdev_clear(zpool_handle_t *, uint64_t);
261 extern nvlist_t *zpool_find_vdev(zpool_handle_t *, const char *, boolean_t *,
263 extern nvlist_t *zpool_find_vdev_by_physpath(zpool_handle_t *, const char *,
265 extern int zpool_label_disk(libzfs_handle_t *, zpool_handle_t *, const char *);
270 extern int zpool_set_prop(zpool_handle_t *, const char *, const char *);
271 extern int zpool_get_prop(zpool_handle_t *, zpool_prop_t, char *,
273 extern uint64_t zpool_get_prop_int(zpool_handle_t *, zpool_prop_t,
336 extern zpool_status_t zpool_get_status(zpool_handle_t *, char **);
343 extern nvlist_t *zpool_get_config(zpool_handle_t *, nvlist_t **);
344 extern nvlist_t *zpool_get_features(zpool_handle_t *);
345 extern int zpool_refresh_stats(zpool_handle_t *, boolean_t *);
346 extern int zpool_get_errlog(zpool_handle_t *, nvlist_t **);
351 extern int zpool_export(zpool_handle_t *, boolean_t, const char *);
352 extern int zpool_export_force(zpool_handle_t *, const char *);
388 extern char *zpool_vdev_name(libzfs_handle_t *, zpool_handle_t *, nvlist_t *,
390 extern int zpool_upgrade(zpool_handle_t *, uint64_t);
391 extern int zpool_get_history(zpool_handle_t *, nvlist_t **);
394 extern void zpool_obj_to_path(zpool_handle_t *, uint64_t, uint64_t, char *,
397 extern int zpool_get_physpath(zpool_handle_t *, char *, size_t);
410 extern zpool_handle_t *zfs_get_pool_handle(const zfs_handle_t *);
427 nvlist_t *, uint64_t, zfs_handle_t *, zpool_handle_t *, const char *);
484 extern int zpool_expand_proplist(zpool_handle_t *, zprop_list_t **);
485 extern int zpool_prop_get_feature(zpool_handle_t *, const char *, char *,
770 extern int zpool_enable_datasets(zpool_handle_t *, const char *, int);
771 extern int zpool_disable_datasets(zpool_handle_t *, boolean_t);
782 extern int zpool_fru_set(zpool_handle_t *, uint64_t, const char *);