/freebsd-10.0-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 184 zfs_sort_snaps(zfs_handle_t *zhp, void *data) argument 234 zfs_iter_snapshots_sorted(zfs_handle_t *zhp, zfs_iter_f callback, void *data) argument 267 snapspec_cb(zfs_handle_t *zhp, void *arg) argument 381 zfs_iter_children(zfs_handle_t *zhp, zfs_iter_f func, void *data) argument 394 zfs_handle_t *zhp; member in struct:iter_stack_frame 406 iter_dependents_cb(zfs_handle_t *zhp, void *arg) argument 465 zfs_iter_dependents(zfs_handle_t *zhp, boolean_t allowrecursion, zfs_iter_f func, void *data) argument [all...] |
H A D | libzfs_dataset.c | 232 process_user_props(zfs_handle_t *zhp, nvlist_t *props) argument 234 libzfs_handle_t *hdl = zhp->zfs_hdl; 261 zpool_add_handle(zfs_handle_t *zhp, const char *pool_name) argument 263 libzfs_handle_t *hdl = zhp->zfs_hdl; 275 zpool_find_handle(zfs_handle_t *zhp, const char *pool_name, int len) argument 277 libzfs_handle_t *hdl = zhp->zfs_hdl; 292 zpool_handle(zfs_handle_t *zhp) argument 298 len = strcspn(zhp->zfs_name, "/@") + 1; 299 pool_name = zfs_alloc(zhp->zfs_hdl, len); 300 (void) strlcpy(pool_name, zhp 327 get_stats_ioctl(zfs_handle_t *zhp, zfs_cmd_t *zc) argument 349 get_recvd_props_ioctl(zfs_handle_t *zhp) argument 384 put_stats_zhdl(zfs_handle_t *zhp, zfs_cmd_t *zc) argument 413 get_stats(zfs_handle_t *zhp) argument 432 zfs_refresh_properties(zfs_handle_t *zhp) argument 442 make_dataset_handle_common(zfs_handle_t *zhp, zfs_cmd_t *zc) argument 478 zfs_handle_t *zhp = calloc(sizeof (zfs_handle_t), 1); local 505 zfs_handle_t *zhp = calloc(sizeof (zfs_handle_t), 1); local 522 zfs_handle_t *zhp = calloc(sizeof (zfs_handle_t), 1); local 538 zfs_handle_t *zhp = calloc(sizeof (zfs_handle_t), 1); local 590 zfs_handle_t *zhp; local 644 zfs_close(zfs_handle_t *zhp) argument 790 zfs_spa_version(zfs_handle_t *zhp, int *spa_version) argument 806 zfs_which_resv_prop(zfs_handle_t *zhp, zfs_prop_t *resv_prop) argument 827 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 1319 zfs_add_synthetic_resv(zfs_handle_t *zhp, nvlist_t *nvl) argument 1441 zfs_prop_set(zfs_handle_t *zhp, const char *propname, const char *propval) argument 1571 zfs_prop_inherit(zfs_handle_t *zhp, const char *propname, boolean_t received) argument 1673 getprop_uint64(zfs_handle_t *zhp, zfs_prop_t prop, char **source) argument 1694 getprop_string(zfs_handle_t *zhp, zfs_prop_t prop, char **source) argument 1716 zfs_is_recvd_props_mode(zfs_handle_t *zhp) argument 1722 zfs_set_recvd_props_mode(zfs_handle_t *zhp, uint64_t *cookie) argument 1729 zfs_unset_recvd_props_mode(zfs_handle_t *zhp, uint64_t *cookie) argument 1745 get_numeric_property(zfs_handle_t *zhp, zfs_prop_t prop, zprop_source_t *src, char **source, uint64_t *val) argument 1924 get_source(zfs_handle_t *zhp, zprop_source_t *srctype, char *source, char *statbuf, size_t statlen) argument 1948 zfs_prop_get_recvd(zfs_handle_t *zhp, const char *propname, char *propbuf, size_t proplen, boolean_t literal) argument 1983 get_clones_string(zfs_handle_t *zhp, char *propbuf, size_t proplen) argument 2011 get_clones_cb(zfs_handle_t *zhp, void *arg) argument 2035 zfs_get_clones_nvl(zfs_handle_t *zhp) argument 2101 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 2401 zfs_prop_get_int(zfs_handle_t *zhp, zfs_prop_t prop) argument 2412 zfs_prop_set_int(zfs_handle_t *zhp, zfs_prop_t prop, uint64_t val) argument 2424 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 2603 zfs_prop_get_userquota_common(zfs_handle_t *zhp, const char *propname, uint64_t *propvalue, zfs_userquota_prop_t *typep) argument 2627 zfs_prop_get_userquota_int(zfs_handle_t *zhp, const char *propname, uint64_t *propvalue) argument 2637 zfs_prop_get_userquota(zfs_handle_t *zhp, const char *propname, char *propbuf, int proplen, boolean_t literal) argument 2662 zfs_prop_get_written_int(zfs_handle_t *zhp, const char *propname, uint64_t *propvalue) argument 2696 zfs_prop_get_written(zfs_handle_t *zhp, const char *propname, char *propbuf, int proplen, boolean_t literal) argument 2719 zfs_get_name(const zfs_handle_t *zhp) argument 2728 zfs_get_type(const zfs_handle_t *zhp) argument 2788 zfs_handle_t *zhp; local 2865 zfs_handle_t *zhp; local 3132 zfs_destroy(zfs_handle_t *zhp, boolean_t defer) argument 3163 zfs_check_snap_cb(zfs_handle_t *zhp, void *arg) argument 3184 zfs_destroy_snaps(zfs_handle_t *zhp, char *snapname, boolean_t defer) argument 3251 zfs_clone(zfs_handle_t *zhp, const char *target, nvlist_t *props) argument 3327 zfs_promote(zfs_handle_t *zhp) argument 3380 zfs_snapshot_cb(zfs_handle_t *zhp, void *arg) argument 3476 zfs_handle_t *zhp; local 3523 rollback_destroy(zfs_handle_t *zhp, void *data) argument 3571 zfs_rollback(zfs_handle_t *zhp, zfs_handle_t *snap, boolean_t force) argument 3644 zfs_rename(zfs_handle_t *zhp, const char *source, const char *target, renameflags_t flags) argument 3857 zfs_get_user_props(zfs_handle_t *zhp) argument 3863 zfs_get_recvd_props(zfs_handle_t *zhp) argument 3885 zfs_expand_proplist(zfs_handle_t *zhp, zprop_list_t **plp, boolean_t received) argument 4001 zfs_prune_proplist(zfs_handle_t *zhp, uint8_t *props) argument 4116 zfs_userspace(zfs_handle_t *zhp, zfs_userquota_prop_t type, zfs_userspace_cb_t func, void *arg) argument 4165 zfs_hold_one(zfs_handle_t *zhp, void *arg) argument 4184 zfs_hold(zfs_handle_t *zhp, const char *snapname, const char *tag, boolean_t recursive, int cleanup_fd) argument 4216 zfs_hold_nvl(zfs_handle_t *zhp, int cleanup_fd, nvlist_t *holds) argument 4284 zfs_release_one(zfs_handle_t *zhp, void *arg) argument 4312 zfs_release(zfs_handle_t *zhp, const char *snapname, const char *tag, boolean_t recursive) argument 4393 zfs_get_fsacl(zfs_handle_t *zhp, nvlist_t **nvl) argument 4460 zfs_set_fsacl(zfs_handle_t *zhp, boolean_t un, nvlist_t *nvl) argument 4514 zfs_get_holds(zfs_handle_t *zhp, nvlist_t **nvl) argument 4595 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) argument 405 zpool_is_bootable(zpool_handle_t *zhp) argument 431 zpool_handle_t *zhp; local 671 zpool_set_prop(zpool_handle_t *zhp, const char *propname, const char *propval) argument 727 zpool_expand_proplist(zpool_handle_t *zhp, zprop_list_t **plp) argument 823 zpool_prop_get_feature(zpool_handle_t *zhp, const char *propname, char *buf, size_t len) argument 981 zpool_handle_t *zhp; local 1023 zpool_handle_t *zhp; local 1054 zpool_handle_t *zhp; local 1073 zpool_close(zpool_handle_t *zhp) argument 1088 zpool_get_name(zpool_handle_t *zhp) argument 1098 zpool_get_state(zpool_handle_t *zhp) argument 1226 zpool_destroy(zpool_handle_t *zhp, const char *log_str) argument 1270 zpool_add(zpool_handle_t *zhp, nvlist_t *nvroot) argument 1394 zpool_export_common(zpool_handle_t *zhp, boolean_t force, boolean_t hardforce, const char *log_str) argument 1428 zpool_export(zpool_handle_t *zhp, boolean_t force, const char *log_str) argument 1434 zpool_export_force(zpool_handle_t *zhp, const char *log_str) argument 1824 zpool_handle_t *zhp; local 1852 zpool_scan(zpool_handle_t *zhp, pool_scan_func_t func) argument 2133 zpool_find_vdev_by_physpath(zpool_handle_t *zhp, const char *ppath, boolean_t *avail_spare, boolean_t *l2cache, boolean_t *log) argument 2167 zpool_find_vdev(zpool_handle_t *zhp, const char *path, boolean_t *avail_spare, boolean_t *l2cache, boolean_t *log) argument 2345 zpool_get_physpath(zpool_handle_t *zhp, char *physpath, size_t phypath_size) argument 2397 zpool_vdev_online(zpool_handle_t *zhp, const char *path, int flags, vdev_state_t *newstate) argument 2470 zpool_vdev_offline(zpool_handle_t *zhp, const char *path, boolean_t istmp) argument 2520 zpool_vdev_fault(zpool_handle_t *zhp, uint64_t guid, vdev_aux_t aux) argument 2555 zpool_vdev_degrade(zpool_handle_t *zhp, uint64_t guid, vdev_aux_t aux) argument 2608 zpool_vdev_attach(zpool_handle_t *zhp, const char *old_disk, const char *new_disk, nvlist_t *nvroot, int replacing) argument 2793 zpool_vdev_detach(zpool_handle_t *zhp, const char *path) argument 2857 find_vdev_entry(zpool_handle_t *zhp, nvlist_t **mchild, uint_t mchildren, nvlist_t **schild, uint_t schildren) argument 2890 zpool_vdev_split(zpool_handle_t *zhp, char *newname, nvlist_t **newroot, nvlist_t *props, splitflags_t flags) argument 3102 zpool_vdev_remove(zpool_handle_t *zhp, const char *path) argument 3147 zpool_clear(zpool_handle_t *zhp, const char *path, nvlist_t *rewindnvl) argument 3223 zpool_vdev_clear(zpool_handle_t *zhp, uint64_t guid) argument 3247 zpool_reguid(zpool_handle_t *zhp) argument 3267 zpool_reopen(zpool_handle_t *zhp) argument 3347 set_path(zpool_handle_t *zhp, nvlist_t *nv, const char *path) argument 3375 zpool_vdev_name(libzfs_handle_t *hdl, zpool_handle_t *zhp, nvlist_t *nv, boolean_t verbose) argument 3512 zpool_get_errlog(zpool_handle_t *zhp, nvlist_t **nverrlistp) argument 3608 zpool_upgrade(zpool_handle_t *zhp, uint64_t new_version) argument 3660 get_history(zpool_handle_t *zhp, char *buf, uint64_t *off, uint64_t *len) argument 3746 zpool_get_history(zpool_handle_t *zhp, nvlist_t **nvhisp) argument 3786 zpool_obj_to_path(zpool_handle_t *zhp, uint64_t dsobj, uint64_t obj, char *pathname, size_t len) argument 3905 zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name) argument 4053 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 1691 zfs_handle_t *zhp; local 1763 zfs_handle_t *zhp; local 1818 guid_to_name_cb(zfs_handle_t *zhp, void *arg) argument 1854 zfs_handle_t *zhp; local 2381 zfs_handle_t *zhp; local 2771 zfs_handle_t *zhp; local 3220 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); 1464 name_or_guid_exists(zpool_handle_t *zhp, void *data) argument 1472 verify(nvlist_lookup_string(zhp->zpool_config, 1479 verify(nvlist_lookup_uint64(zhp->zpool_config, 1485 zpool_close(zhp); 1532 find_aux(zpool_handle_t *zhp, voi argument 1572 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 | 437 extern int zfs_prop_get_userquota_int(zfs_handle_t *zhp, const char *propname, 439 extern int zfs_prop_get_userquota(zfs_handle_t *zhp, const char *propname, 441 extern int zfs_prop_get_written_int(zfs_handle_t *zhp, const char *propname, 443 extern int zfs_prop_get_written(zfs_handle_t *zhp, const char *propname, 445 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 | 699 zpool_get_handle(zpool_handle_t *zhp) argument 701 return (zhp->zpool_hdl); 705 zfs_get_handle(zfs_handle_t *zhp) argument 707 return (zhp->zfs_hdl); 711 zfs_get_pool_handle(const zfs_handle_t *zhp) argument 713 return (zhp->zpool_hdl);
|
/freebsd-10.0-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 | 364 print_vdev_tree(zpool_handle_t *zhp, const char *name, nvlist_t *nv, int indent, argument 386 vname = zpool_vdev_name(g_zfs, zhp, child[c], B_FALSE); 387 print_vdev_tree(zhp, vname, child[c], indent + 2, 500 zpool_handle_t *zhp; local 537 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) 540 if ((config = zpool_get_config(zhp, NULL)) == NULL) { 543 zpool_close(zhp); 548 nvroot = make_root_vdev(zhp, force, !force, B_FALSE, dryrun, 551 zpool_close(zhp); 562 "configuration:\n"), zpool_get_name(zhp)); 598 zpool_handle_t *zhp; local 1070 zpool_handle_t *zhp; local 1143 zpool_handle_t *zhp; local 1206 max_width(zpool_handle_t *zhp, nvlist_t *nv, int depth, int max) argument 1273 find_spare(zpool_handle_t *zhp, void *data) argument 1295 print_status_config(zpool_handle_t *zhp, const char *name, nvlist_t *nv, int namewidth, int depth, boolean_t isspare) argument 1557 print_logs(zpool_handle_t *zhp, nvlist_t *nv, int namewidth, boolean_t verbose) argument 1820 zpool_handle_t *zhp; local 2329 print_vdev_stats(zpool_handle_t *zhp, const char *name, nvlist_t *oldnv, nvlist_t *newnv, iostat_cbdata_t *cb, int depth) argument 2464 refresh_iostat(zpool_handle_t *zhp, void *data) argument 2485 print_iostat(zpool_handle_t *zhp, void *data) argument 2517 get_namewidth(zpool_handle_t *zhp, void *data) argument 2822 print_pool(zpool_handle_t *zhp, list_cbdata_t *cb) argument 2908 print_list_stats(zpool_handle_t *zhp, const char *name, nvlist_t *nv, list_cbdata_t *cb, int depth) argument 2988 list_callback(zpool_handle_t *zhp, void *data) argument 3142 zpool_handle_t *zhp; local 3268 zpool_handle_t *zhp; local 3336 zpool_handle_t *zhp; local 3458 zpool_handle_t *zhp; local 3536 zpool_handle_t *zhp; local 3597 zpool_handle_t *zhp; local 3675 zpool_handle_t *zhp; local 3725 zpool_handle_t *zhp; local 3750 scrub_callback(zpool_handle_t *zhp, void *data) argument 3930 print_error_log(zpool_handle_t *zhp) argument 3965 print_spares(zpool_handle_t *zhp, nvlist_t **spares, uint_t nspares, int namewidth) argument 3985 print_l2cache(zpool_handle_t *zhp, nvlist_t **l2cache, uint_t nl2cache, int namewidth) argument 4056 status_callback(zpool_handle_t *zhp, void *data) argument 4468 is_root_pool(zpool_handle_t *zhp) argument 4493 root_pool_upgrade_check(zpool_handle_t *zhp, char *poolname, int size) argument 4501 upgrade_version(zpool_handle_t *zhp, uint64_t version) argument 4532 upgrade_enable_all(zpool_handle_t *zhp, int *countp) argument 4570 upgrade_cb(zpool_handle_t *zhp, void *arg) argument 4635 upgrade_list_older_cb(zpool_handle_t *zhp, void *arg) argument 4668 upgrade_list_disabled_cb(zpool_handle_t *zhp, void *arg) argument 4720 upgrade_one(zpool_handle_t *zhp, void *data) argument 4993 get_history_one(zpool_handle_t *zhp, void *data) argument 5151 get_callback(zpool_handle_t *zhp, void *data) argument 5242 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-10.0-release/cddl/contrib/opensolaris/cmd/zfs/ |
H A D | zfs_main.c | 599 zfs_handle_t *zhp = NULL; local 645 if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_SNAPSHOT)) == NULL) 663 ret = zfs_clone(zhp, argv[1], props); 678 zfs_close(zhp); 684 if (zhp) 685 zfs_close(zhp); 712 zfs_handle_t *zhp = NULL; local 858 if ((zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_DATASET)) == NULL) 867 canmount = zfs_prop_get_int(zhp, ZFS_PROP_CANMOUNT); 875 if (zfs_mount(zhp, NUL 936 destroy_check_dependent(zfs_handle_t *zhp, void *data) argument 993 destroy_callback(zfs_handle_t *zhp, void *data) argument 1051 destroy_print_cb(zfs_handle_t *zhp, void *arg) argument 1115 snapshot_to_nvl_cb(zfs_handle_t *zhp, void *arg) argument 1137 gather_snapshots(zfs_handle_t *zhp, void *arg) argument 1169 zfs_handle_t *zhp = zfs_open(g_zfs, nvpair_name(pair), local 1198 zfs_handle_t *zhp = NULL; local 1417 get_callback(zfs_handle_t *zhp, void *data) argument 1773 inherit_recurse_cb(zfs_handle_t *zhp, void *data) argument 1790 inherit_cb(zfs_handle_t *zhp, void *data) argument 1897 same_pool(zfs_handle_t *zhp, const char *name) argument 1909 upgrade_list_callback(zfs_handle_t *zhp, void *data) argument 1945 upgrade_set_callback(zfs_handle_t *zhp, void *data) argument 2595 zfs_handle_t *zhp; local 2882 print_dataset(zfs_handle_t *zhp, zprop_list_t *pl, boolean_t scripted) argument 2961 list_callback(zfs_handle_t *zhp, void *data) argument 3124 zfs_handle_t *zhp; local 3237 zfs_handle_t *zhp; local 3297 rollback_check(zfs_handle_t *zhp, void *data) argument 3363 zfs_handle_t *zhp, *snap; local 3453 set_callback(zfs_handle_t *zhp, void *data) argument 3528 zfs_snapshot_cb(zfs_handle_t *zhp, void *arg) argument 3604 zfs_handle_t *zhp; local 3642 zfs_handle_t *zhp; local 5053 set_deleg_perms(zfs_handle_t *zhp, void *data) argument 5067 zfs_handle_t *zhp; local 5223 zfs_handle_t *zhp; local 5345 holds_callback(zfs_handle_t *zhp, void *data) argument 5482 get_one_dataset(zfs_handle_t *zhp, void *data) argument 5553 share_mount_one(zfs_handle_t *zhp, int op, int flags, char *protocol, boolean_t explicit, const char *options) argument 5908 zfs_handle_t *zhp; local 5977 zfs_handle_t *zhp; local 6112 zfs_handle_t *zhp; local 6385 zfs_handle_t *zhp; local 6447 zfs_handle_t *zhp; local 6595 zfs_handle_t *zhp; local [all...] |
H A D | zfs_iter.c | 74 zfs_include_snapshots(zfs_handle_t *zhp, callback_data_t *cb) argument 81 zph = zfs_get_pool_handle(zhp); 90 zfs_callback(zfs_handle_t *zhp, void *data) argument 94 int include_snaps = zfs_include_snapshots(zhp, cb); 96 if ((zfs_get_type(zhp) & cb->cb_types) || 97 ((zfs_get_type(zhp) == ZFS_TYPE_SNAPSHOT) && include_snaps)) { 101 node->zn_handle = zhp; 108 zfs_prune_proplist(zhp, 111 if (zfs_expand_proplist(zhp, cb->cb_proplist, 132 if (zfs_get_type(zhp) 436 zfs_handle_t *zhp; local [all...] |
/freebsd-10.0-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 | 571 zfs_handle_t *zhp; local 970 if ((zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL) 973 if (zfs_unmount(zhp, NULL, 0) != 0) 982 ret = (zfs_mount(zhp, NULL, 0) != 0);
|