Searched refs:zhp (Results 26 - 43 of 43) sorted by relevance

12

/freebsd-13-stable/sys/contrib/openzfs/cmd/zed/agents/
H A Dzfs_agents.c77 zfs_agent_iter_vdev(zpool_handle_t *zhp, nvlist_t *nvl, void *arg) argument
90 if (zfs_agent_iter_vdev(zhp, child[c], gsp)) {
102 if (zfs_agent_iter_vdev(zhp, child[c], gsp)) {
111 if (zfs_agent_iter_vdev(zhp, child[c], gsp)) {
134 zfs_agent_iter_pool(zpool_handle_t *zhp, void *arg) argument
142 if ((config = zpool_get_config(zhp, NULL)) != NULL) {
145 (void) zfs_agent_iter_vdev(zhp, nvl, gsp);
156 zpool_close(zhp);
H A Dzfs_diagnosis.c214 zfs_mark_pool(zpool_handle_t *zhp, void *unused) argument
224 pool_guid = zpool_get_prop_int(zhp, ZPOOL_PROP_GUID, NULL);
235 if ((config = zpool_get_config(zhp, NULL)) == NULL) {
236 zpool_close(zhp);
256 zpool_close(zhp);
262 zpool_close(zhp);
274 zpool_find_load_time(zpool_handle_t *zhp, void *arg) argument
283 zpool_close(zhp);
287 pool_guid = zpool_get_prop_int(zhp, ZPOOL_PROP_GUID, NULL);
289 zpool_close(zhp);
[all...]
/freebsd-13-stable/sys/contrib/openzfs/lib/libzfs/os/linux/
H A Dlibzfs_pool_os.c212 zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name) argument
226 if (zhp) {
229 verify(nvlist_lookup_nvlist(zhp->zpool_config,
232 if (zhp->zpool_start_block == 0)
235 start_block = zhp->zpool_start_block;
236 zhp->zpool_start_block = start_block;
H A Dlibzfs_util_os.c180 return (zfs_error(di->zhp->zfs_hdl, EZFS_DIFF, di->errbuf));
/freebsd-13-stable/sys/contrib/openzfs/include/
H A Dlibzfs_impl.h96 #define ZFS_IS_VOLUME(zhp) ((zhp)->zfs_head_type == ZFS_TYPE_VOLUME)
222 zfs_handle_t *zhp; member in struct:differ_info
244 extern int do_mount(zfs_handle_t *zhp, const char *mntpt, char *opts,
248 extern int zfs_share_proto(zfs_handle_t *zhp, zfs_share_proto_t *proto);
251 extern boolean_t zfs_is_mountable(zfs_handle_t *zhp, char *buf, size_t buflen,
H A Dlibzfs.h319 extern uint64_t zpool_vdev_path_to_guid(zpool_handle_t *zhp, const char *path);
500 extern int zfs_prop_get_userquota_int(zfs_handle_t *zhp, const char *propname,
502 extern int zfs_prop_get_userquota(zfs_handle_t *zhp, const char *propname,
504 extern int zfs_prop_get_written_int(zfs_handle_t *zhp, const char *propname,
506 extern int zfs_prop_get_written(zfs_handle_t *zhp, const char *propname,
508 extern int zfs_prop_get_feature(zfs_handle_t *zhp, const char *propname,
833 extern void zfs_adjust_mount_options(zfs_handle_t *zhp, const char *mntpoint,
940 extern int zfs_jail(zfs_handle_t *zhp, int jailid, int attach);
/freebsd-13-stable/cddl/usr.sbin/zfsd/
H A Dcase_file.cc491 zpool_handle_t *zhp(zpl.empty() ? NULL : zpl.front());
492 if (zhp == NULL) {
497 poolname = zpool_get_name(zhp);
498 config = zpool_get_config(zhp, NULL);
943 zpool_handle_t *zhp(zpl.empty() ? NULL : zpl.front());
950 if (zhp == NULL
951 || (VdevIterator(zhp).Find(m_vdevGUID)) == NULL) {
966 if (zpool_vdev_fault(zhp, (uint64_t)m_vdevGUID,
984 if (zpool_vdev_degrade(zhp, (uint64_t)m_vdevGUID,
1004 CaseFile::BeingReplacedBy(zpool_handle_t *zhp) { argument
[all...]
H A Dcase_file.h345 * \param zhp Pool handle state from the caller context
350 Vdev BeingReplacedBy(zpool_handle_t *zhp);
394 nvlist_t *CaseVdev(zpool_handle_t *zhp) const;
H A Dvdev.cc330 Vdev::Name(zpool_handle_t *zhp, bool verbose) const argument
332 return (zpool_vdev_name(g_zfsHandle, zhp, m_config,
/freebsd-13-stable/sys/contrib/openzfs/contrib/pam_zfs_key/
H A Dpam_zfs_key.c456 find_dsname_by_prop_value(zfs_handle_t *zhp, void *data) argument
458 zfs_type_t type = zfs_get_type(zhp);
464 zfs_close(zhp);
469 (void) zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint,
472 zfs_close(zhp);
476 target->dsname = strdup(zfs_get_name(zhp));
477 zfs_close(zhp);
486 zfs_handle_t *zhp = zfs_open(g_zfs, config->homes_prefix, local
488 if (zhp == NULL) {
491 zfs_close(zhp);
[all...]
/freebsd-13-stable/sys/contrib/openzfs/lib/libzfs/os/freebsd/
H A Dlibzfs_zmount.c116 do_mount(zfs_handle_t *zhp, const char *mntpt, char *opts, int flags) argument
119 return (do_mount_(zfs_get_name(zhp), mntpt, flags, MNTTYPE_ZFS, NULL, 0,
/freebsd-13-stable/sys/contrib/openzfs/cmd/zpool_influxdb/
H A Dzpool_influxdb.c705 print_stats(zpool_handle_t *zhp, void *data) argument
717 strncmp(data, zhp->zpool_name, ZFS_MAX_DATASET_NAME_LEN) != 0) {
718 zpool_close(zhp);
722 if (zpool_refresh_stats(zhp, &missing) != 0) {
723 zpool_close(zhp);
727 config = zpool_get_config(zhp, NULL);
736 zpool_close(zhp);
741 zpool_close(zhp);
745 pool_name = escape_string(zhp->zpool_name);
767 zpool_close(zhp);
[all...]
/freebsd-13-stable/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_status.c509 zpool_get_status(zpool_handle_t *zhp, char **msgid, zpool_errata_t *errata) argument
516 if (zpool_get_prop(zhp, ZPOOL_PROP_COMPATIBILITY, compatibility,
520 zpool_status_t ret = check_status(zhp->zpool_config, B_FALSE, errata,
H A Dlibzfs_util.c1108 zpool_get_handle(zpool_handle_t *zhp) argument
1110 return (zhp->zpool_hdl);
1114 zfs_get_handle(zfs_handle_t *zhp) argument
1116 return (zhp->zfs_hdl);
1120 zfs_get_pool_handle(const zfs_handle_t *zhp) argument
1122 return (zhp->zpool_hdl);
/freebsd-13-stable/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_vdev.c935 make_disks(zpool_handle_t *zhp, nvlist_t *nv) argument
1032 if (zpool_label_disk(g_zfs, zhp, devnode) == -1)
1070 if ((ret = make_disks(zhp, child[c])) != 0)
1076 if ((ret = make_disks(zhp, child[c])) != 0)
1082 if ((ret = make_disks(zhp, child[c])) != 0)
1730 split_mirror_vdev(zpool_handle_t *zhp, char *newname, nvlist_t *props, argument
1743 if (!flags.dryrun && make_disks(zhp, newroot) != 0) {
1767 if (zpool_vdev_split(zhp, newname, &newroot, props, flags) != 0) {
1810 make_root_vdev(zpool_handle_t *zhp, nvlist_t *props, int force, int check_rep, argument
1825 if (zhp
[all...]
/freebsd-13-stable/lib/libbe/
H A Dbe.c671 if ((err = zfs_prop_get(dccb->zhp, prop, (char *)&pval,
766 dccb.zhp = ds;
1253 zfs_handle_t *zhp; local
1275 zhp = zfs_open(lbh->lzh, be_path, ZFS_TYPE_FILESYSTEM);
1276 if (zhp == NULL)
1288 err = zfs_promote(zhp);
1291 zfs_close(zhp);
/freebsd-13-stable/sys/contrib/openzfs/cmd/zinject/
H A Dzinject.c755 zfs_handle_t *zhp = NULL; local
1266 if ((zhp = zfs_open(g_zfs, dataset,
1271 if (zfs_unmount(zhp, NULL, 0) != 0) {
1282 ret = (zfs_mount(zhp, NULL, 0) != 0);
/freebsd-13-stable/sys/contrib/openzfs/cmd/zpool/os/linux/
H A Dzpool_vdev_os.c410 after_zpool_upgrade(zpool_handle_t *zhp) argument

Completed in 229 milliseconds

12