xref: /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_reopen/setup.ksh (revision 61145dc2b94f12f6a47344fb9aac702321880e43)
1#!/bin/ksh -p
2# SPDX-License-Identifier: CDDL-1.0
3
4#
5# This file and its contents are supplied under the terms of the
6# Common Development and Distribution License ("CDDL"), version 1.0.
7# You may only use this file in accordance with the terms of version
8# 1.0 of the CDDL.
9#
10# A full copy of the text of the CDDL should have accompanied this
11# source.  A copy of the CDDL is also available via the Internet at
12# http://www.illumos.org/license/CDDL.
13#
14
15#
16# Copyright (c) 2016, 2017 by Intel Corporation. All rights reserved.
17# Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
18#
19
20. $STF_SUITE/tests/functional/cli_root/zpool_reopen/zpool_reopen.cfg
21
22verify_runnable "global"
23
24# Create scsi_debug devices for the reopen tests
25if is_linux; then
26	load_scsi_debug $SDSIZE $SDHOSTS $SDTGTS $SDLUNS '512b'
27else
28	log_unsupported "scsi debug module unsupported"
29fi
30
31log_pass
32