/freebsd-9.3-release/cddl/contrib/opensolaris/lib/libzfs/common/ |
H A D | libzfs_iter.c | 41 zfs_iter_clones(zfs_handle_t *zhp, zfs_iter_f func, void *data) argument 43 nvlist_t *nvl = zfs_get_clones_nvl(zhp); 51 zfs_handle_t *clone = zfs_open(zhp->zfs_hdl, nvpair_name(pair), 63 zfs_do_list_ioctl(zfs_handle_t *zhp, unsigned long arg, zfs_cmd_t *zc) argument 70 (void) strlcpy(zc->zc_name, zhp->zfs_name, sizeof (zc->zc_name)); 71 rc = ioctl(zhp->zfs_hdl->libzfs_fd, arg, zc); 77 if (zcmd_expand_dst_nvlist(zhp->zfs_hdl, zc) != 0) { 93 rc = zfs_standard_error(zhp->zfs_hdl, errno, 106 zfs_iter_filesystems(zfs_handle_t *zhp, zfs_iter_f func, void *data) argument 112 if (zhp 142 zfs_iter_snapshots(zfs_handle_t *zhp, boolean_t simple, zfs_iter_f func, void *data) argument 180 zfs_iter_bookmarks(zfs_handle_t *zhp, zfs_iter_f func, void *data) argument 238 zfs_sort_snaps(zfs_handle_t *zhp, void *data) argument 288 zfs_iter_snapshots_sorted(zfs_handle_t *zhp, zfs_iter_f callback, void *data) argument 321 snapspec_cb(zfs_handle_t *zhp, void *arg) argument 435 zfs_iter_children(zfs_handle_t *zhp, zfs_iter_f func, void *data) argument 448 zfs_handle_t *zhp; member in struct:iter_stack_frame 460 iter_dependents_cb(zfs_handle_t *zhp, void *arg) argument 519 zfs_iter_dependents(zfs_handle_t *zhp, boolean_t allowrecursion, zfs_iter_f func, void *data) argument [all...] |
H A D | libzfs_dataset.c | 233 process_user_props(zfs_handle_t *zhp, nvlist_t *props) argument 235 libzfs_handle_t *hdl = zhp->zfs_hdl; 262 zpool_add_handle(zfs_handle_t *zhp, const char *pool_name) argument 264 libzfs_handle_t *hdl = zhp->zfs_hdl; 276 zpool_find_handle(zfs_handle_t *zhp, const char *pool_name, int len) argument 278 libzfs_handle_t *hdl = zhp->zfs_hdl; 293 zpool_handle(zfs_handle_t *zhp) argument 299 len = strcspn(zhp->zfs_name, "/@#") + 1; 300 pool_name = zfs_alloc(zhp->zfs_hdl, len); 301 (void) strlcpy(pool_name, zhp 328 get_stats_ioctl(zfs_handle_t *zhp, zfs_cmd_t *zc) argument 350 get_recvd_props_ioctl(zfs_handle_t *zhp) argument 385 put_stats_zhdl(zfs_handle_t *zhp, zfs_cmd_t *zc) argument 414 get_stats(zfs_handle_t *zhp) argument 433 zfs_refresh_properties(zfs_handle_t *zhp) argument 443 make_dataset_handle_common(zfs_handle_t *zhp, zfs_cmd_t *zc) argument 479 zfs_handle_t *zhp = calloc(sizeof (zfs_handle_t), 1); local 506 zfs_handle_t *zhp = calloc(sizeof (zfs_handle_t), 1); local 523 zfs_handle_t *zhp = calloc(sizeof (zfs_handle_t), 1); local 539 zfs_handle_t *zhp = calloc(sizeof (zfs_handle_t), 1); local 619 zfs_handle_t *zhp = calloc(sizeof (zfs_handle_t), 1); local 655 zfs_handle_t *zhp; local 709 zfs_close(zfs_handle_t *zhp) argument 855 zfs_spa_version(zfs_handle_t *zhp, int *spa_version) argument 871 zfs_which_resv_prop(zfs_handle_t *zhp, zfs_prop_t *resv_prop) argument 892 zfs_valid_proplist(libzfs_handle_t *hdl, zfs_type_t type, nvlist_t *nvl, uint64_t zoned, zfs_handle_t *zhp, const char *errbuf) argument 1384 zfs_add_synthetic_resv(zfs_handle_t *zhp, nvlist_t *nvl) argument 1506 zfs_prop_set(zfs_handle_t *zhp, const char *propname, const char *propval) argument 1636 zfs_prop_inherit(zfs_handle_t *zhp, const char *propname, boolean_t received) argument 1738 getprop_uint64(zfs_handle_t *zhp, zfs_prop_t prop, char **source) argument 1759 getprop_string(zfs_handle_t *zhp, zfs_prop_t prop, char **source) argument 1781 zfs_is_recvd_props_mode(zfs_handle_t *zhp) argument 1787 zfs_set_recvd_props_mode(zfs_handle_t *zhp, uint64_t *cookie) argument 1794 zfs_unset_recvd_props_mode(zfs_handle_t *zhp, uint64_t *cookie) argument 1810 get_numeric_property(zfs_handle_t *zhp, zfs_prop_t prop, zprop_source_t *src, char **source, uint64_t *val) argument 1993 get_source(zfs_handle_t *zhp, zprop_source_t *srctype, char *source, char *statbuf, size_t statlen) argument 2017 zfs_prop_get_recvd(zfs_handle_t *zhp, const char *propname, char *propbuf, size_t proplen, boolean_t literal) argument 2052 get_clones_string(zfs_handle_t *zhp, char *propbuf, size_t proplen) argument 2080 get_clones_cb(zfs_handle_t *zhp, void *arg) argument 2104 zfs_get_clones_nvl(zfs_handle_t *zhp) argument 2170 zfs_prop_get(zfs_handle_t *zhp, zfs_prop_t prop, char *propbuf, size_t proplen, zprop_source_t *src, char *statbuf, size_t statlen, boolean_t literal) argument 2497 zfs_prop_get_int(zfs_handle_t *zhp, zfs_prop_t prop) argument 2508 zfs_prop_set_int(zfs_handle_t *zhp, zfs_prop_t prop, uint64_t val) argument 2520 zfs_prop_get_numeric(zfs_handle_t *zhp, zfs_prop_t prop, uint64_t *value, zprop_source_t *src, char *statbuf, size_t statlen) argument 2699 zfs_prop_get_userquota_common(zfs_handle_t *zhp, const char *propname, uint64_t *propvalue, zfs_userquota_prop_t *typep) argument 2723 zfs_prop_get_userquota_int(zfs_handle_t *zhp, const char *propname, uint64_t *propvalue) argument 2733 zfs_prop_get_userquota(zfs_handle_t *zhp, const char *propname, char *propbuf, int proplen, boolean_t literal) argument 2758 zfs_prop_get_written_int(zfs_handle_t *zhp, const char *propname, uint64_t *propvalue) argument 2792 zfs_prop_get_written(zfs_handle_t *zhp, const char *propname, char *propbuf, int proplen, boolean_t literal) argument 2815 zfs_get_name(const zfs_handle_t *zhp) argument 2824 zfs_get_type(const zfs_handle_t *zhp) argument 2884 zfs_handle_t *zhp; local 2961 zfs_handle_t *zhp; local 3228 zfs_destroy(zfs_handle_t *zhp, boolean_t defer) argument 3272 zfs_check_snap_cb(zfs_handle_t *zhp, void *arg) argument 3293 zfs_destroy_snaps(zfs_handle_t *zhp, char *snapname, boolean_t defer) argument 3360 zfs_clone(zfs_handle_t *zhp, const char *target, nvlist_t *props) argument 3436 zfs_promote(zfs_handle_t *zhp) argument 3489 zfs_snapshot_cb(zfs_handle_t *zhp, void *arg) argument 3585 zfs_handle_t *zhp; local 3631 rollback_destroy_dependent(zfs_handle_t *zhp, void *data) argument 3656 rollback_destroy(zfs_handle_t *zhp, void *data) argument 3679 zfs_rollback(zfs_handle_t *zhp, zfs_handle_t *snap, boolean_t force) argument 3753 zfs_rename(zfs_handle_t *zhp, const char *source, const char *target, renameflags_t flags) argument 3966 zfs_get_user_props(zfs_handle_t *zhp) argument 3972 zfs_get_recvd_props(zfs_handle_t *zhp) argument 3994 zfs_expand_proplist(zfs_handle_t *zhp, zprop_list_t **plp, boolean_t received, boolean_t literal) argument 4111 zfs_prune_proplist(zfs_handle_t *zhp, uint8_t *props) argument 4226 zfs_userspace(zfs_handle_t *zhp, zfs_userquota_prop_t type, zfs_userspace_cb_t func, void *arg) argument 4275 zfs_hold_one(zfs_handle_t *zhp, void *arg) argument 4294 zfs_hold(zfs_handle_t *zhp, const char *snapname, const char *tag, boolean_t recursive, int cleanup_fd) argument 4326 zfs_hold_nvl(zfs_handle_t *zhp, int cleanup_fd, nvlist_t *holds) argument 4394 zfs_release_one(zfs_handle_t *zhp, void *arg) argument 4422 zfs_release(zfs_handle_t *zhp, const char *snapname, const char *tag, boolean_t recursive) argument 4503 zfs_get_fsacl(zfs_handle_t *zhp, nvlist_t **nvl) argument 4570 zfs_set_fsacl(zfs_handle_t *zhp, boolean_t un, nvlist_t *nvl) argument 4624 zfs_get_holds(zfs_handle_t *zhp, nvlist_t **nvl) argument 4705 zfs_jail(zfs_handle_t *zhp, int jailid, int attach) argument [all...] |
H A D | libzfs_config.c | 218 zpool_get_config(zpool_handle_t *zhp, nvlist_t **oldconfig) argument 221 *oldconfig = zhp->zpool_old_config; 222 return (zhp->zpool_config); 230 zpool_get_features(zpool_handle_t *zhp) argument 234 config = zpool_get_config(zhp, NULL); 241 error = zpool_refresh_stats(zhp, &missing); 246 config = zpool_get_config(zhp, NULL); 262 zpool_refresh_stats(zpool_handle_t *zhp, boolean_t *missing) argument 267 libzfs_handle_t *hdl = zhp->zpool_hdl; 270 (void) strcpy(zc.zc_name, zhp 388 zpool_handle_t *zhp; local 433 zfs_handle_t *zhp; local [all...] |
H A D | libzfs_mount.c | 224 zfs_is_mounted(zfs_handle_t *zhp, char **where) argument 226 return (is_mounted(zhp->zfs_hdl, zfs_get_name(zhp), where)); 234 zfs_is_mountable(zfs_handle_t *zhp, char *buf, size_t buflen, argument 240 if (!zfs_prop_valid_for_type(ZFS_PROP_MOUNTPOINT, zhp->zfs_type)) 243 verify(zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, buf, buflen, 250 if (zfs_prop_get_int(zhp, ZFS_PROP_CANMOUNT) == ZFS_CANMOUNT_OFF) 253 if (zfs_prop_get_int(zhp, ZFS_PROP_ZONED) && 267 zfs_mount(zfs_handle_t *zhp, const char *options, int flags) argument 272 libzfs_handle_t *hdl = zhp 376 zfs_unmount(zfs_handle_t *zhp, const char *mountpoint, int flags) argument 420 zfs_unmountall(zfs_handle_t *zhp, int flags) argument 436 zfs_is_shared(zfs_handle_t *zhp) argument 452 zfs_share(zfs_handle_t *zhp) argument 459 zfs_unshare(zfs_handle_t *zhp) argument 469 zfs_is_shared_proto(zfs_handle_t *zhp, char **where, zfs_share_proto_t proto) argument 490 zfs_is_shared_nfs(zfs_handle_t *zhp, char **where) argument 497 zfs_is_shared_smb(zfs_handle_t *zhp, char **where) argument 726 zfs_share_proto(zfs_handle_t *zhp, zfs_share_proto_t *proto) argument 833 zfs_share_nfs(zfs_handle_t *zhp) argument 839 zfs_share_smb(zfs_handle_t *zhp) argument 845 zfs_shareall(zfs_handle_t *zhp) argument 916 zfs_unshare_proto(zfs_handle_t *zhp, const char *mountpoint, zfs_share_proto_t *proto) argument 954 zfs_unshare_nfs(zfs_handle_t *zhp, const char *mountpoint) argument 960 zfs_unshare_smb(zfs_handle_t *zhp, const char *mountpoint) argument 969 zfs_unshareall_proto(zfs_handle_t *zhp, zfs_share_proto_t *proto) argument 985 zfs_unshareall_nfs(zfs_handle_t *zhp) argument 991 zfs_unshareall_smb(zfs_handle_t *zhp) argument 997 zfs_unshareall(zfs_handle_t *zhp) argument 1003 zfs_unshareall_bypath(zfs_handle_t *zhp, const char *mountpoint) argument 1020 remove_mountpoint(zfs_handle_t *zhp) argument 1042 libzfs_add_handle(get_all_cb_t *cbp, zfs_handle_t *zhp) argument 1059 mount_cb(zfs_handle_t *zhp, void *data) argument 1118 zpool_enable_datasets(zpool_handle_t *zhp, const char *mntopts, int flags) argument 1197 zpool_disable_datasets(zpool_handle_t *zhp, boolean_t force) argument [all...] |
H A D | libzfs_changelist.c | 398 change_one(zfs_handle_t *zhp, void *data) argument 417 if (!(ZFS_IS_VOLUME(zhp) && clp->cl_realprop == ZFS_PROP_NAME) && 418 zfs_prop_get(zhp, clp->cl_prop, property, 421 zfs_close(zhp); 431 zfs_prop_get(zhp, clp->cl_shareprop, property, 434 zfs_close(zhp); 444 if ((cn = zfs_alloc(zfs_get_handle(zhp), 446 zfs_close(zhp); 450 cn->cn_handle = zhp; 452 zfs_is_mounted(zhp, NUL 535 changelist_gather(zfs_handle_t *zhp, zfs_prop_t prop, int gather_flags, int mnt_flags) argument [all...] |
H A D | libzfs_pool.c | 68 zpool_get_all_props(zpool_handle_t *zhp) argument 71 libzfs_handle_t *hdl = zhp->zpool_hdl; 73 (void) strlcpy(zc.zc_name, zhp->zpool_name, sizeof (zc.zc_name)); 90 if (zcmd_read_dst_nvlist(hdl, &zc, &zhp->zpool_props) != 0) { 101 zpool_props_refresh(zpool_handle_t *zhp) argument 105 old_props = zhp->zpool_props; 107 if (zpool_get_all_props(zhp) != 0) 115 zpool_get_prop_string(zpool_handle_t *zhp, zpool_prop_t prop, argument 123 nvl = zhp->zpool_props; 141 zpool_get_prop_int(zpool_handle_t *zhp, zpool_prop_ argument 242 zpool_get_prop(zpool_handle_t *zhp, zpool_prop_t prop, char *buf, size_t len, zprop_source_t *srctype, boolean_t literal) argument 413 zpool_is_bootable(zpool_handle_t *zhp) argument 439 zpool_handle_t *zhp; local 678 zpool_set_prop(zpool_handle_t *zhp, const char *propname, const char *propval) argument 734 zpool_expand_proplist(zpool_handle_t *zhp, zprop_list_t **plp) argument 830 zpool_prop_get_feature(zpool_handle_t *zhp, const char *propname, char *buf, size_t len) argument 988 zpool_handle_t *zhp; local 1030 zpool_handle_t *zhp; local 1061 zpool_handle_t *zhp; local 1080 zpool_close(zpool_handle_t *zhp) argument 1095 zpool_get_name(zpool_handle_t *zhp) argument 1105 zpool_get_state(zpool_handle_t *zhp) argument 1233 zpool_destroy(zpool_handle_t *zhp, const char *log_str) argument 1277 zpool_add(zpool_handle_t *zhp, nvlist_t *nvroot) argument 1401 zpool_export_common(zpool_handle_t *zhp, boolean_t force, boolean_t hardforce, const char *log_str) argument 1435 zpool_export(zpool_handle_t *zhp, boolean_t force, const char *log_str) argument 1441 zpool_export_force(zpool_handle_t *zhp, const char *log_str) argument 1831 zpool_handle_t *zhp; local 1859 zpool_scan(zpool_handle_t *zhp, pool_scan_func_t func) argument 2140 zpool_find_vdev_by_physpath(zpool_handle_t *zhp, const char *ppath, boolean_t *avail_spare, boolean_t *l2cache, boolean_t *log) argument 2174 zpool_find_vdev(zpool_handle_t *zhp, const char *path, boolean_t *avail_spare, boolean_t *l2cache, boolean_t *log) argument 2352 zpool_get_physpath(zpool_handle_t *zhp, char *physpath, size_t phypath_size) argument 2404 zpool_vdev_online(zpool_handle_t *zhp, const char *path, int flags, vdev_state_t *newstate) argument 2477 zpool_vdev_offline(zpool_handle_t *zhp, const char *path, boolean_t istmp) argument 2527 zpool_vdev_fault(zpool_handle_t *zhp, uint64_t guid, vdev_aux_t aux) argument 2562 zpool_vdev_degrade(zpool_handle_t *zhp, uint64_t guid, vdev_aux_t aux) argument 2615 zpool_vdev_attach(zpool_handle_t *zhp, const char *old_disk, const char *new_disk, nvlist_t *nvroot, int replacing) argument 2800 zpool_vdev_detach(zpool_handle_t *zhp, const char *path) argument 2864 find_vdev_entry(zpool_handle_t *zhp, nvlist_t **mchild, uint_t mchildren, nvlist_t **schild, uint_t schildren) argument 2897 zpool_vdev_split(zpool_handle_t *zhp, char *newname, nvlist_t **newroot, nvlist_t *props, splitflags_t flags) argument 3109 zpool_vdev_remove(zpool_handle_t *zhp, const char *path) argument 3154 zpool_clear(zpool_handle_t *zhp, const char *path, nvlist_t *rewindnvl) argument 3230 zpool_vdev_clear(zpool_handle_t *zhp, uint64_t guid) argument 3254 zpool_reguid(zpool_handle_t *zhp) argument 3274 zpool_reopen(zpool_handle_t *zhp) argument 3354 set_path(zpool_handle_t *zhp, nvlist_t *nv, const char *path) argument 3382 zpool_vdev_name(libzfs_handle_t *hdl, zpool_handle_t *zhp, nvlist_t *nv, boolean_t verbose) argument 3519 zpool_get_errlog(zpool_handle_t *zhp, nvlist_t **nverrlistp) argument 3615 zpool_upgrade(zpool_handle_t *zhp, uint64_t new_version) argument 3667 get_history(zpool_handle_t *zhp, char *buf, uint64_t *off, uint64_t *len) argument 3755 zpool_get_history(zpool_handle_t *zhp, nvlist_t **nvhisp) argument 3815 zpool_obj_to_path(zpool_handle_t *zhp, uint64_t dsobj, uint64_t obj, char *pathname, size_t len) argument 3934 zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name) argument 4082 zpool_handle_t *zhp = NULL; local [all...] |
H A D | libzfs_sendrecv.c | 592 static void send_iterate_prop(zfs_handle_t *zhp, nvlist_t *nv); 595 send_iterate_snap(zfs_handle_t *zhp, void *arg) argument 598 uint64_t guid = zhp->zfs_dmustats.dds_guid; 602 snapname = strrchr(zhp->zfs_name, '@')+1; 616 send_iterate_prop(zhp, nv); 620 zfs_close(zhp); 625 send_iterate_prop(zfs_handle_t *zhp, nvlist_t *nv) argument 629 while ((elem = nvlist_next_nvpair(zhp->zfs_props, elem)) != NULL) { 658 if (zhp->zfs_type == ZFS_TYPE_SNAPSHOT) 666 if ((strcmp(source, zhp 702 send_iterate_fs(zfs_handle_t *zhp, void *arg) argument 761 zfs_handle_t *zhp; local 817 estimate_ioctl(zfs_handle_t *zhp, uint64_t fromsnap_obj, boolean_t fromorigin, uint64_t *sizep) argument 880 dump_ioctl(zfs_handle_t *zhp, const char *fromsnap, uint64_t fromsnap_obj, boolean_t fromorigin, int outfd, nvlist_t *debugnv) argument 958 gather_holds(zfs_handle_t *zhp, send_dump_data_t *sdd) argument 978 zfs_handle_t *zhp = pa->pa_zhp; local 1020 dump_snapshot(zfs_handle_t *zhp, void *arg) argument 1163 dump_filesystem(zfs_handle_t *zhp, void *arg) argument 1268 zfs_handle_t *zhp; local 1349 zfs_send(zfs_handle_t *zhp, const char *fromsnap, const char *tosnap, sendflags_t *flags, int outfd, snapfilter_cb_t filter_func, void *cb_arg, nvlist_t **debugnvp) argument 1623 zfs_send_one(zfs_handle_t *zhp, const char *from, int fd) argument 1747 zfs_handle_t *zhp; local 1819 zfs_handle_t *zhp; local 1874 guid_to_name_cb(zfs_handle_t *zhp, void *arg) argument 1910 zfs_handle_t *zhp; local 2437 zfs_handle_t *zhp; local 2827 zfs_handle_t *zhp; local 3276 zfs_handle_t *zhp; local [all...] |
H A D | libzfs_diff.c | 64 zfs_handle_t *zhp; member in struct:differ_info 98 error = ioctl(di->zhp->zfs_hdl->libzfs_fd, ZFS_IOC_OBJ_TO_STATS, &zc); 383 libzfs_handle_t *lhdl = di->zhp->zfs_hdl; 500 return (zfs_error(di->zhp->zfs_hdl, EZFS_DIFF, di->errbuf)); 513 libzfs_handle_t *hdl = di->zhp->zfs_hdl; 559 libzfs_handle_t *hdl = di->zhp->zfs_hdl; 619 zfs_handle_t *zhp; local 621 di->ds = zfs_alloc(di->zhp->zfs_hdl, tdslen + 1); 625 zhp = zfs_open(hdl, di->ds, ZFS_TYPE_FILESYSTEM); 626 while (zhp ! 732 setup_differ_info(zfs_handle_t *zhp, const char *fromsnap, const char *tosnap, differ_info_t *di) argument 753 zfs_show_diffs(zfs_handle_t *zhp, int outfd, const char *fromsnap, const char *tosnap, int flags) argument [all...] |
H A D | libzfs_import.c | 349 zpool_handle_t *zhp; local 352 if (zpool_open_silent(hdl, name, &zhp) != 0) 355 if (zhp == NULL) { 360 verify(nvlist_lookup_uint64(zhp->zpool_config, ZPOOL_CONFIG_POOL_GUID, 363 zpool_close(zhp); 1471 name_or_guid_exists(zpool_handle_t *zhp, void *data) argument 1479 verify(nvlist_lookup_string(zhp->zpool_config, 1486 verify(nvlist_lookup_uint64(zhp->zpool_config, 1492 zpool_close(zhp); 1539 find_aux(zpool_handle_t *zhp, voi argument 1579 zpool_handle_t *zhp; local [all...] |
H A D | libzfs_impl.h | 106 #define ZFS_IS_VOLUME(zhp) ((zhp)->zfs_head_type == ZFS_TYPE_VOLUME)
|
H A D | libzfs_fru.c | 360 zpool_fru_set(zpool_handle_t *zhp, uint64_t vdev_guid, const char *fru) argument 364 (void) strncpy(zc.zc_name, zhp->zpool_name, sizeof (zc.zc_name)); 368 if (zfs_ioctl(zhp->zpool_hdl, ZFS_IOC_VDEV_SETFRU, &zc) != 0) 369 return (zpool_standard_error_fmt(zhp->zpool_hdl, errno,
|
H A D | libzfs.h | 438 extern int zfs_prop_get_userquota_int(zfs_handle_t *zhp, const char *propname, 440 extern int zfs_prop_get_userquota(zfs_handle_t *zhp, const char *propname, 442 extern int zfs_prop_get_written_int(zfs_handle_t *zhp, const char *propname, 444 extern int zfs_prop_get_written(zfs_handle_t *zhp, const char *propname, 446 extern int zfs_prop_get_feature(zfs_handle_t *zhp, const char *propname,
|
H A D | libzfs_status.c | 379 zpool_get_status(zpool_handle_t *zhp, char **msgid) argument 381 zpool_status_t ret = check_status(zhp->zpool_config, B_FALSE);
|
H A D | libzfs_util.c | 698 zpool_get_handle(zpool_handle_t *zhp) argument 700 return (zhp->zpool_hdl); 704 zfs_get_handle(zfs_handle_t *zhp) argument 706 return (zhp->zfs_hdl); 710 zfs_get_pool_handle(const zfs_handle_t *zhp) argument 712 return (zhp->zpool_hdl);
|
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/zpool/ |
H A D | zpool_iter.c | 76 add_pool(zpool_handle_t *zhp, void *data) argument 82 node->zn_handle = zhp; 86 zpool_expand_proplist(zhp, zlp->zl_proplist) != 0) { 87 zpool_close(zhp); 93 zpool_close(zhp); 133 zpool_handle_t *zhp; local 135 if (zhp = zpool_open_canfail(g_zfs, argv[i])) { 136 if (add_pool(zhp, zlp) != 0) 184 pool_list_remove(zpool_list_t *zlp, zpool_handle_t *zhp) argument 188 search.zn_handle = zhp; [all...] |
H A D | zpool_main.c | 363 print_vdev_tree(zpool_handle_t *zhp, const char *name, nvlist_t *nv, int indent, argument 385 vname = zpool_vdev_name(g_zfs, zhp, child[c], B_FALSE); 386 print_vdev_tree(zhp, vname, child[c], indent + 2, 499 zpool_handle_t *zhp; local 536 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) 539 if ((config = zpool_get_config(zhp, NULL)) == NULL) { 542 zpool_close(zhp); 547 nvroot = make_root_vdev(zhp, force, !force, B_FALSE, dryrun, 550 zpool_close(zhp); 561 "configuration:\n"), zpool_get_name(zhp)); 597 zpool_handle_t *zhp; local 1068 zpool_handle_t *zhp; local 1141 zpool_handle_t *zhp; local 1204 max_width(zpool_handle_t *zhp, nvlist_t *nv, int depth, int max) argument 1271 find_spare(zpool_handle_t *zhp, void *data) argument 1293 print_status_config(zpool_handle_t *zhp, const char *name, nvlist_t *nv, int namewidth, int depth, boolean_t isspare) argument 1555 print_logs(zpool_handle_t *zhp, nvlist_t *nv, int namewidth, boolean_t verbose) argument 1818 zpool_handle_t *zhp; local 2325 print_vdev_stats(zpool_handle_t *zhp, const char *name, nvlist_t *oldnv, nvlist_t *newnv, iostat_cbdata_t *cb, int depth) argument 2460 refresh_iostat(zpool_handle_t *zhp, void *data) argument 2481 print_iostat(zpool_handle_t *zhp, void *data) argument 2513 get_namewidth(zpool_handle_t *zhp, void *data) argument 2819 print_pool(zpool_handle_t *zhp, list_cbdata_t *cb) argument 2905 print_list_stats(zpool_handle_t *zhp, const char *name, nvlist_t *nv, list_cbdata_t *cb, int depth) argument 2985 list_callback(zpool_handle_t *zhp, void *data) argument 3143 zpool_handle_t *zhp; local 3269 zpool_handle_t *zhp; local 3337 zpool_handle_t *zhp; local 3459 zpool_handle_t *zhp; local 3537 zpool_handle_t *zhp; local 3598 zpool_handle_t *zhp; local 3676 zpool_handle_t *zhp; local 3724 zpool_handle_t *zhp; local 3766 scrub_callback(zpool_handle_t *zhp, void *data) argument 3946 print_error_log(zpool_handle_t *zhp) argument 3981 print_spares(zpool_handle_t *zhp, nvlist_t **spares, uint_t nspares, int namewidth) argument 4001 print_l2cache(zpool_handle_t *zhp, nvlist_t **l2cache, uint_t nl2cache, int namewidth) argument 4072 status_callback(zpool_handle_t *zhp, void *data) argument 4484 is_root_pool(zpool_handle_t *zhp) argument 4509 root_pool_upgrade_check(zpool_handle_t *zhp, char *poolname, int size) argument 4517 upgrade_version(zpool_handle_t *zhp, uint64_t version) argument 4548 upgrade_enable_all(zpool_handle_t *zhp, int *countp) argument 4586 upgrade_cb(zpool_handle_t *zhp, void *arg) argument 4651 upgrade_list_older_cb(zpool_handle_t *zhp, void *arg) argument 4684 upgrade_list_disabled_cb(zpool_handle_t *zhp, void *arg) argument 4736 upgrade_one(zpool_handle_t *zhp, void *data) argument 5009 get_history_one(zpool_handle_t *zhp, void *data) argument 5167 get_callback(zpool_handle_t *zhp, void *data) argument 5349 set_callback(zpool_handle_t *zhp, void *data) argument [all...] |
H A D | zpool_util.h | 46 nvlist_t *make_root_vdev(zpool_handle_t *zhp, int force, int check_rep, 48 nvlist_t *split_mirror_vdev(zpool_handle_t *zhp, char *newname,
|
H A D | zpool_vdev.c | 923 make_disks(zpool_handle_t *zhp, nvlist_t *nv) argument 956 if (zpool_label_disk(g_zfs, zhp, diskname) == -1) 998 if ((ret = make_disks(zhp, child[c])) != 0) 1004 if ((ret = make_disks(zhp, child[c])) != 0) 1010 if ((ret = make_disks(zhp, child[c])) != 0) 1405 split_mirror_vdev(zpool_handle_t *zhp, char *newname, nvlist_t *props, argument 1419 if (!flags.dryrun && make_disks(zhp, newroot) != 0) { 1444 if (zpool_vdev_split(zhp, newname, &newroot, props, flags) != 0) { 1464 make_root_vdev(zpool_handle_t *zhp, int force, int check_rep, argument 1479 if (zhp [all...] |
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/zfs/ |
H A D | zfs_main.c | 604 zfs_handle_t *zhp = NULL; local 650 if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_SNAPSHOT)) == NULL) 668 ret = zfs_clone(zhp, argv[1], props); 683 zfs_close(zhp); 689 if (zhp) 690 zfs_close(zhp); 715 zfs_handle_t *zhp = NULL; local 852 if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_DATASET)) == NULL) 861 canmount = zfs_prop_get_int(zhp, ZFS_PROP_CANMOUNT); 869 if (zfs_mount(zhp, NUL 931 destroy_check_dependent(zfs_handle_t *zhp, void *data) argument 988 destroy_callback(zfs_handle_t *zhp, void *data) argument 1046 destroy_print_cb(zfs_handle_t *zhp, void *arg) argument 1110 snapshot_to_nvl_cb(zfs_handle_t *zhp, void *arg) argument 1132 gather_snapshots(zfs_handle_t *zhp, void *arg) argument 1164 zfs_handle_t *zhp = zfs_open(g_zfs, nvpair_name(pair), local 1193 zfs_handle_t *zhp = NULL; local 1453 get_callback(zfs_handle_t *zhp, void *data) argument 1814 inherit_recurse_cb(zfs_handle_t *zhp, void *data) argument 1831 inherit_cb(zfs_handle_t *zhp, void *data) argument 1938 same_pool(zfs_handle_t *zhp, const char *name) argument 1950 upgrade_list_callback(zfs_handle_t *zhp, void *data) argument 1986 upgrade_set_callback(zfs_handle_t *zhp, void *data) argument 2636 zfs_handle_t *zhp; local 2925 print_dataset(zfs_handle_t *zhp, list_cbdata_t *cb) argument 3002 list_callback(zfs_handle_t *zhp, void *data) argument 3172 zfs_handle_t *zhp; local 3285 zfs_handle_t *zhp; local 3338 rollback_check_dependent(zfs_handle_t *zhp, void *data) argument 3365 rollback_check(zfs_handle_t *zhp, void *data) argument 3409 zfs_handle_t *zhp, *snap; local 3501 set_callback(zfs_handle_t *zhp, void *data) argument 3576 zfs_snapshot_cb(zfs_handle_t *zhp, void *arg) argument 3652 zfs_handle_t *zhp; local 3690 zfs_handle_t *zhp; local 5136 set_deleg_perms(zfs_handle_t *zhp, void *data) argument 5150 zfs_handle_t *zhp; local 5306 zfs_handle_t *zhp; local 5428 holds_callback(zfs_handle_t *zhp, void *data) argument 5565 get_one_dataset(zfs_handle_t *zhp, void *data) argument 5636 share_mount_one(zfs_handle_t *zhp, int op, int flags, char *protocol, boolean_t explicit, const char *options) argument 5991 zfs_handle_t *zhp; local 6060 zfs_handle_t *zhp; local 6195 zfs_handle_t *zhp; local 6468 zfs_handle_t *zhp; local 6530 zfs_handle_t *zhp; local 6678 zfs_handle_t *zhp; local 6759 zfs_handle_t *zhp; local [all...] |
H A D | zfs_iter.c | 77 zfs_include_snapshots(zfs_handle_t *zhp, callback_data_t *cb) argument 84 zph = zfs_get_pool_handle(zhp); 93 zfs_callback(zfs_handle_t *zhp, void *data) argument 97 boolean_t include_snaps = zfs_include_snapshots(zhp, cb); 100 if ((zfs_get_type(zhp) & cb->cb_types) || 101 ((zfs_get_type(zhp) == ZFS_TYPE_SNAPSHOT) && include_snaps)) { 105 node->zn_handle = zhp; 112 zfs_prune_proplist(zhp, 115 if (zfs_expand_proplist(zhp, cb->cb_proplist, 137 if (zfs_get_type(zhp) 444 zfs_handle_t *zhp; local [all...] |
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/zinject/ |
H A D | translate.c | 434 zpool_handle_t *zhp; local 442 if ((zhp = zpool_open(g_zfs, pool)) == NULL) 447 tgt = zpool_find_vdev(zhp, device, &isspare, &iscache, NULL);
|
H A D | zinject.c | 572 zfs_handle_t *zhp; local 971 if ((zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL) 974 if (zfs_unmount(zhp, NULL, 0) != 0) 983 ret = (zfs_mount(zhp, NULL, 0) != 0);
|