Lines Matching refs:zhp

116 	zfs_handle_t			*zhp;  in be_find_active_zone_root()  local
148 if ((zhp = zfs_open(g_zfs, zone_container_ds, ZFS_TYPE_FILESYSTEM)) in be_find_active_zone_root()
161 if ((ret = zfs_iter_filesystems(zhp, be_find_active_zone_root_callback, in be_find_active_zone_root()
181 ZFS_CLOSE(zhp); in be_find_active_zone_root()
207 zfs_handle_t *zhp = NULL; in be_find_mounted_zone_root() local
221 if ((zhp = zfs_open(g_zfs, zone_container_ds, ZFS_TYPE_FILESYSTEM)) in be_find_mounted_zone_root()
236 if ((zret = zfs_iter_filesystems(zhp, in be_find_mounted_zone_root()
258 ZFS_CLOSE(zhp); in be_find_mounted_zone_root()
360 zfs_handle_t *zhp = NULL; in be_zone_get_parent_uuid() local
367 if ((zhp = zfs_open(g_zfs, root_ds, ZFS_TYPE_FILESYSTEM)) == NULL) { in be_zone_get_parent_uuid()
375 if ((userprops = zfs_get_user_props(zhp)) == NULL) { in be_zone_get_parent_uuid()
403 ZFS_CLOSE(zhp); in be_zone_get_parent_uuid()
422 zfs_handle_t *zhp = NULL; in be_zone_set_parent_uuid() local
429 if ((zhp = zfs_open(g_zfs, root_ds, ZFS_TYPE_FILESYSTEM)) == NULL) { in be_zone_set_parent_uuid()
437 if (zfs_prop_set(zhp, BE_ZONE_PARENTBE_PROPERTY, uu_string) != 0) { in be_zone_set_parent_uuid()
444 ZFS_CLOSE(zhp); in be_zone_set_parent_uuid()
523 be_find_active_zone_root_callback(zfs_handle_t *zhp, void *data) in be_find_active_zone_root_callback() argument
530 if ((iret = be_zone_get_parent_uuid(zfs_get_name(zhp), &parent_uuid)) in be_find_active_zone_root_callback()
534 zfs_get_name(zhp), be_err_to_str(iret)); in be_find_active_zone_root_callback()
543 if (be_zone_get_active(zhp)) { in be_find_active_zone_root_callback()
554 azr_data->zoneroot_ds = strdup(zfs_get_name(zhp)); in be_find_active_zone_root_callback()
562 ZFS_CLOSE(zhp); in be_find_active_zone_root_callback()
585 be_find_mounted_zone_root_callback(zfs_handle_t *zhp, void *data) in be_find_mounted_zone_root_callback() argument
590 if (zfs_is_mounted(zhp, &mp) && mp != NULL && in be_find_mounted_zone_root_callback()
592 mzr_data->zoneroot_ds = strdup(zfs_get_name(zhp)); in be_find_mounted_zone_root_callback()
614 be_zone_get_active(zfs_handle_t *zhp) in be_zone_get_active() argument
621 if ((userprops = zfs_get_user_props(zhp)) == NULL) { in be_zone_get_active()
624 "dataset (%s): %s\n"), zfs_get_name(zhp), in be_zone_get_active()