Lines Matching defs:zhp
115 zfs_handle_t *zhp;
143 if ((zhp = zfs_open(g_zfs, zone_container_ds, ZFS_TYPE_FILESYSTEM))
156 if ((ret = zfs_iter_filesystems(zhp, be_find_active_zone_root_callback,
176 ZFS_CLOSE(zhp);
202 zfs_handle_t *zhp = NULL;
212 if ((zhp = zfs_open(g_zfs, zone_container_ds, ZFS_TYPE_FILESYSTEM))
227 if ((zret = zfs_iter_filesystems(zhp,
249 ZFS_CLOSE(zhp);
347 zfs_handle_t *zhp = NULL;
354 if ((zhp = zfs_open(g_zfs, root_ds, ZFS_TYPE_FILESYSTEM)) == NULL) {
362 if ((userprops = zfs_get_user_props(zhp)) == NULL) {
390 ZFS_CLOSE(zhp);
409 zfs_handle_t *zhp = NULL;
416 if ((zhp = zfs_open(g_zfs, root_ds, ZFS_TYPE_FILESYSTEM)) == NULL) {
424 if (zfs_prop_set(zhp, BE_ZONE_PARENTBE_PROPERTY, uu_string) != 0) {
431 ZFS_CLOSE(zhp);
501 * zhp - zfs_handle_t pointer to current dataset being processed
510 be_find_active_zone_root_callback(zfs_handle_t *zhp, void *data)
517 if ((iret = be_zone_get_parent_uuid(zfs_get_name(zhp), &parent_uuid))
521 zfs_get_name(zhp), be_err_to_str(iret));
530 if (be_zone_get_active(zhp)) {
541 azr_data->zoneroot_ds = strdup(zfs_get_name(zhp));
549 ZFS_CLOSE(zhp);
562 * zhp - zfs_handle_t pointer to the current dataset being
572 be_find_mounted_zone_root_callback(zfs_handle_t *zhp, void *data)
577 if (zfs_is_mounted(zhp, &mp) && mp != NULL &&
579 mzr_data->zoneroot_ds = strdup(zfs_get_name(zhp));
601 be_zone_get_active(zfs_handle_t *zhp)
608 if ((userprops = zfs_get_user_props(zhp)) == NULL) {
611 "dataset (%s): %s\n"), zfs_get_name(zhp),