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