]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ZTS: devices_001_pos and devices_002_neg
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 27 Dec 2019 20:11:27 +0000 (12:11 -0800)
committerGitHub <noreply@github.com>
Fri, 27 Dec 2019 20:11:27 +0000 (12:11 -0800)
commit590ff61a5520214c9ad7101c55d87adaa580e15e
tree0f2c879f66315da8ce032ddf9666bb9a7efa7350
parentd5c97f3de7ac3d5568bc641cc87a2edf37f8b9b5
ZTS: devices_001_pos and devices_002_neg

Update the devices_001_pos and devices_002_neg test cases such that the
special block device file created is backed by a ZFS volume.  Specifying
a specific device allows the major and minor numbers to be easily
determined.  Furthermore, this avoids the potentially dangerous behavior
of opening the first block device we happen to find under /dev/.

Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9773
tests/zfs-tests/tests/functional/devices/devices_001_pos.ksh
tests/zfs-tests/tests/functional/devices/devices_002_neg.ksh
tests/zfs-tests/tests/functional/devices/devices_common.kshlib
tests/zfs-tests/tests/functional/devices/setup.ksh