-
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
Clearer wording on Errata #4 for non-destructive remedy #8683
Conversation
You have this:
It wasn't clear to me the precedence of that "or". I read it a couple times and it wasn't making sense, as new datasets wouldn't have snapshots to delete. In reading the referenced issue, it sounds like deleting the snapshots is an alternative to creating new datasets. Also, from what I can see, creating snapshots is not required to fix the issue. The deletion is the important part. How about something like this:
Or focus on the snapshot deletion first, which might be even better:
|
I like that wording a lot. And you're right: It's about getting rid of existing snapshots. |
This comment has been minimized.
This comment has been minimized.
165f6b7
to
004156a
Compare
aadb708
to
4fc6790
Compare
there's a very weird mixture of tabs vs spaces going on in that code section... |
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 wording sounds good to me. This is an approval for that much.
I have not personally confirmed that deleting snapshots is sufficient. I am relying on the quotes from Brian to that effect.
I also have not personally run this code to verify the zpool status
output is correctly line-wrapped and tabbed. @JMoVS, can you paste in an example of the zpool status
output?
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.
Let's make sure to get @tcaputi's feedback on the updated wording here.
Errata openzfs#4 doesn’t mention a non-destructive way to clear it. This commits fixes openzfs#8682. Signed-off-by: Justin Scholz <git@justinscholz.de>
I verified that getting rid of snapshots (and a subsequent reimport of the pool which is always necessary) was sufficient to get rid of the Errata on O3X (I'm an O3X user). I'll see if I can directly pull in that commit into the O3X codebase and test it directly, otherwise I very welcome if somebody else can more easily confirm correct formatting of the |
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.
LGTM. The sentiment here is accurate. The wording feels a little awkward to me, but its not a big deal.
Small correction, any bookmarks created before enabling bookmark_v2 will also need to be destroyed. |
Codecov Report
@@ Coverage Diff @@
## master #8683 +/- ##
==========================================
- Coverage 79.34% 78.61% -0.74%
==========================================
Files 262 381 +119
Lines 77786 117580 +39794
==========================================
+ Hits 61723 92434 +30711
- Misses 16063 25146 +9083
Continue to review full report at Codecov.
|
Signed-off-by: Justin Scholz <git@justinscholz.de>
@JMoVS @rlaager @tcaputi I think the proposed wording is a definite improvement but still a little awkward. How about this alternate proposed wording: "Existing encrypted snapshots and bookmarks contain an on-disk incompatibility. This may cause on-disk corruption if they are used with 'zfs recv'. To correct the issue enable the bookmark_v2 feature. No additional action is needed if there are no encrypted snapshots or bookmarks. If preserving the encrypted snapshots and bookmarks is required use a non-raw send to backup and restore them. Alternately, they may be removed to resolve the incompatibility." |
I like it, though my German (not sure if same rules apply in English) mind would put 2 additional commas in:
|
I agree with adding those commas. |
@rlaager I take that as an "ok go". @behlendorf I split your text up a bit for the And I think I finally figured out the new lines and limited it to 80 characters. Still, please test it. |
Signed-off-by: Justin Scholz <git@justinscholz.de>
ha! This time I even got the STYLE test to give me a green check mark! 💪🏼 |
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.
Thanks!
You’re welcome;-) |
Users of existing pools, especially pools with top-level encrypted datasets, could run into trouble trying to work around Errata openzfs#4. Clarify that removing encrypted snapshots and bookmarks is enough to clear the errata. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Richard Laager <rlaager@wiktel.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tom Caputi <tcaputi@datto.com> Signed-off-by: Justin Scholz <git@justinscholz.de> Closes openzfs#8682 Closes openzfs#8683
Users of existing pools, especially pools with top-level encrypted datasets, could run into trouble trying to work around Errata openzfs#4. Clarify that removing encrypted snapshots and bookmarks is enough to clear the errata. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Richard Laager <rlaager@wiktel.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tom Caputi <tcaputi@datto.com> Signed-off-by: Justin Scholz <git@justinscholz.de> Closes openzfs#8682 Closes openzfs#8683
Errata #4 doesn’t mention a non-destructive way to clear it. This commits fixes #8682
Motivation and Context
Users of existing pools, especially pools with top-level encrypted datasets could run into trouble trying to work around Errata #4. After @behlendorf's clarification, there is a non-destructive way that is possible. This commit mentions that.
This commit attempts to fix #8682.
Description
Just a documentation change where previous Errata #4 changes were made-
How Has This Been Tested?
only documentation changes, haven't tested them myself.
Types of changes
Checklist:
Signed-off-by
.