-
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-mount-generator escaping #9970
Conversation
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.
This looks correct, but I did not manually test it.
@aerusso would you mind taking a look at this change. |
535a51f
to
9445e30
Compare
I have changed to use the more proper form of escaping, as suggested by @aerusso. This also eliminates a lot of the need for the first commit. I'm happy with this simpler change. |
The correct name for the mount unit for / is "-.mount", not ".mount". Co-authored-by: Antonio Russo <[email protected]> Signed-off-by: Richard Laager <[email protected]>
9445e30
to
ba453cd
Compare
@aerusso Since you basically "rewrote" this one-liner, I gave you a Co-authored-by credit here. I can make you the sole author if you'd prefer. |
Codecov Report
@@ Coverage Diff @@
## master #9970 +/- ##
========================================
+ Coverage 79% 79% +<1%
========================================
Files 385 385
Lines 122382 122382
========================================
+ Hits 96922 97092 +170
+ Misses 25460 25290 -170
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.
This looks good! The co-authorship is fine, too.
The correct name for the mount unit for / is "-.mount", not ".mount". Reviewed-by: InsanePrawn <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Co-authored-by: Antonio Russo <[email protected]> Signed-off-by: Richard Laager <[email protected]> Closes openzfs#9970
The correct name for the mount unit for / is "-.mount", not ".mount". Reviewed-by: InsanePrawn <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Co-authored-by: Antonio Russo <[email protected]> Signed-off-by: Richard Laager <[email protected]> Closes openzfs#9970
The correct name for the mount unit for / is "-.mount", not ".mount". Reviewed-by: InsanePrawn <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Co-authored-by: Antonio Russo <[email protected]> Signed-off-by: Richard Laager <[email protected]> Closes #9970
The correct name for the mount unit for / is "-.mount", not ".mount". Reviewed-by: InsanePrawn <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Co-authored-by: Antonio Russo <[email protected]> Signed-off-by: Richard Laager <[email protected]> Closes openzfs#9970
Motivation and Context
This fixes the name of the mount unit for the root filesystem. I discovered these pre-existing issues in review/testing of #9649.
In practice, the root filesystem is mounted by the initrd anyway, so this is moot in practice (which is why this wasn't noticed), but we should be correct nonetheless.
Description
The correct name for the mount unit for / is "-.mount", not ".mount".
How Has This Been Tested?
I used some print statements and some diffing. This is a nice test case, if it works on your particular system:
Types of changes
Checklist:
Signed-off-by
.