196 |
196 |
197 /* |
197 /* |
198 * Functions to create and destroy pools |
198 * Functions to create and destroy pools |
199 */ |
199 */ |
200 extern int zpool_create(libzfs_handle_t *, const char *, nvlist_t *, |
200 extern int zpool_create(libzfs_handle_t *, const char *, nvlist_t *, |
201 nvlist_t *); |
201 nvlist_t *, nvlist_t *); |
202 extern int zpool_destroy(zpool_handle_t *); |
202 extern int zpool_destroy(zpool_handle_t *); |
203 extern int zpool_add(zpool_handle_t *, nvlist_t *); |
203 extern int zpool_add(zpool_handle_t *, nvlist_t *); |
204 |
204 |
205 /* |
205 /* |
206 * Functions to manipulate pool and vdev state |
206 * Functions to manipulate pool and vdev state |
340 extern const char *zfs_prop_default_string(zfs_prop_t); |
340 extern const char *zfs_prop_default_string(zfs_prop_t); |
341 extern uint64_t zfs_prop_default_numeric(zfs_prop_t); |
341 extern uint64_t zfs_prop_default_numeric(zfs_prop_t); |
342 extern const char *zfs_prop_column_name(zfs_prop_t); |
342 extern const char *zfs_prop_column_name(zfs_prop_t); |
343 extern boolean_t zfs_prop_align_right(zfs_prop_t); |
343 extern boolean_t zfs_prop_align_right(zfs_prop_t); |
344 |
344 |
|
345 extern nvlist_t *zfs_valid_proplist(libzfs_handle_t *, zfs_type_t, |
|
346 nvlist_t *, uint64_t, zfs_handle_t *, const char *); |
|
347 |
345 extern const char *zfs_prop_to_name(zfs_prop_t); |
348 extern const char *zfs_prop_to_name(zfs_prop_t); |
346 extern int zfs_prop_set(zfs_handle_t *, const char *, const char *); |
349 extern int zfs_prop_set(zfs_handle_t *, const char *, const char *); |
347 extern int zfs_prop_get(zfs_handle_t *, zfs_prop_t, char *, size_t, |
350 extern int zfs_prop_get(zfs_handle_t *, zfs_prop_t, char *, size_t, |
348 zprop_source_t *, char *, size_t, boolean_t); |
351 zprop_source_t *, char *, size_t, boolean_t); |
349 extern int zfs_prop_get_numeric(zfs_handle_t *, zfs_prop_t, uint64_t *, |
352 extern int zfs_prop_get_numeric(zfs_handle_t *, zfs_prop_t, uint64_t *, |