-
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_rmnode() unlink / rollback issue #9739
Conversation
8898c91
to
dbfb35a
Compare
Codecov Report
@@ Coverage Diff @@
## master #9739 +/- ##
========================================
+ Coverage 79% 79% +<1%
========================================
Files 385 385
Lines 121610 121611 +1
========================================
+ Hits 96429 96525 +96
+ Misses 25181 25086 -95
Continue to review full report at Codecov.
|
dbfb35a
to
058a10d
Compare
If a has rollback has occurred while a file is open and unlinked. Then when the file is closed post rollback it will not exist in the rolled back version of the unlinked object. Therefore, the call to zap_remove_int() may correctly return ENOENT and should be allowed. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
058a10d
to
62f5a31
Compare
@behlendorf Should this be in 0.8.X ? Since we are still seeing: #9741 on 0.8.3 |
@bgly yes, that's a good idea. It has had enough soak time now in master. |
If a has rollback has occurred while a file is open and unlinked. Then when the file is closed post rollback it will not exist in the rolled back version of the unlinked object. Therefore, the call to zap_remove_int() may correctly return ENOENT and should be allowed. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#6812 Closes openzfs#9739
If a has rollback has occurred while a file is open and unlinked. Then when the file is closed post rollback it will not exist in the rolled back version of the unlinked object. Therefore, the call to zap_remove_int() may correctly return ENOENT and should be allowed. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#6812 Closes openzfs#9739
Motivation and Context
Issue #6812.
Description
If a has rollback has occurred while a file is open and unlinked.
Then when the file is closed post rollback it will not exist in the
rolled back version of the unlinked object. Therefore, the call to
zap_remove_int() may correctly return ENOENT and should be allowed.
How Has This Been Tested?
Minimally, locally I performed some basic testing but was unable
to reproduce the original issue. This may be because I was only
testing using master which includes additional changes in this area.
Or because in my manual testing I wasn't able exactly force the
described scenario.
Types of changes
Checklist:
Signed-off-by
.