-
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
Fix zfs_allow_004_pos #7267
Fix zfs_allow_004_pos #7267
Conversation
fi | ||
|
||
if is_global_zone ; then | ||
if datasetexists "$pool" ; then |
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.
s/$pool/$dataset
d44d3aa
to
a0e603b
Compare
Looks like that should be a nice cleanup of some spurious test failures! There was one in It looks like all
In fact, that could likely be run over the whole test suite, but that would require careful manual inspection. |
@chrisrd yes, that's definitely our hope. It looks like @dinatale2 can you extend this to also cover |
a0e603b
to
0572564
Compare
@chrisrd @behlendorf Refreshed to include |
{ | ||
typeset dataset=$1 | ||
typeset mtpt | ||
typeset args="-f" |
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.
We probably shouldn't default to -f
, instead how about typeset args=${2:-""}
. Then you can drop the args
assignment below, and callers won't need to pass a second argument unless requesting thing the -f
behavior.
0572564
to
7518110
Compare
Datasets can be busy when calling zfs destroy. Introduce a helper function to destroy datasets and use it to destroy datasets in zfs_allow_004_pos, zfs_promote_008_pos, and zfs_destroy_002_pos. Signed-off-by: Giuseppe Di Natale <[email protected]>
7518110
to
5026d44
Compare
Codecov Report
@@ Coverage Diff @@
## master #7267 +/- ##
==========================================
+ Coverage 76.35% 76.54% +0.18%
==========================================
Files 327 327
Lines 103874 103866 -8
==========================================
+ Hits 79314 79500 +186
+ Misses 24560 24366 -194
Continue to review full report at Codecov.
|
Datasets can be busy when calling zfs destroy. Introduce a helper function to destroy datasets and use it to destroy datasets in zfs_allow_004_pos, zfs_promote_008_pos, and zfs_destroy_002_pos. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Giuseppe Di Natale <[email protected]> Closes openzfs#7224 Closes openzfs#7246 Closes openzfs#7249 Closes openzfs#7267
Datasets can be busy when calling zfs destroy. Introduce a helper function to destroy datasets and use it to destroy datasets in zfs_allow_004_pos, zfs_promote_008_pos, and zfs_destroy_002_pos. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Giuseppe Di Natale <[email protected]> Closes #7224 Closes #7246 Closes #7249 Closes #7267
Description
Datasets can be busy when calling zfs destroy. Introduce
a helper function to destroy datasets and use it to destroy
datasets in zfs_allow_004_pos.
Motivation and Context
Fix failing tests.
How Has This Been Tested?
Locally on a CentOS 7 VM.
Types of changes
Checklist:
Signed-off-by
.