-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZTS: devices_001_pos and devices_002_neg #9773
Conversation
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/. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
9560b52
to
cdfb704
Compare
Codecov Report
@@ Coverage Diff @@
## master #9773 +/- ##
==========================================
+ Coverage 67% 80% +13%
==========================================
Files 303 385 +82
Lines 104240 121475 +17235
==========================================
+ Hits 69658 96888 +27230
+ Misses 34582 24587 -9995
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The devices property is not currently supported/tested on FreeBSD (the devices tag is in linux.run). We have a special devfs for device nodes. We can drop the FreeBSD parts in this PR if you like.
I'd like to keep it, presumably at some point we'll want to enable this test case for FreeBSD. |
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 openzfs#9773
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 openzfs#9773
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
Motivation and Context
The way the
devices_001_pos
anddevices_002_neg
tests wereoriginal written and then ported has resulted ZTS failures when running
in environment with only NVMe devices. Update the test case so they
no longer need to grub around in the /dev/ directory to determine the
major and minor numbers to be used.
Description
Update the
devices_001_pos
anddevices_002_neg
test cases such that thespecial 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/
.How Has This Been Tested?
Manually tested in the problematic environment as configured by the CI.
For this initial PR I've restricted the ZTS tags run to those I've observed
fail in the CI without this change. Assuming the CI confirms all is will
I'll resubmit this for a full ZTS run.
Types of changes
Checklist:
Signed-off-by
.