HomeFreeBSD

ZTS: devices_001_pos and devices_002_neg

Description

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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Dec 27 2019, 8:11 PM
GitHub <noreply@github.com>Committed on Dec 27 2019, 8:11 PM
Parents
rGd5c97f3de7ac: Avoid some crashes when importing a pool with corrupt metadata
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG590ff61a5520: ZTS: devices_001_pos and devices_002_neg (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Dec 27 2019, 8:11 PM