-
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
Lint all manpages at default level #12129
Conversation
3092a8b
to
3c686b8
Compare
Okay, that's all of them. Open questions for someone with a fresh pair of eyes and/or understanding:
|
6d01530
to
7b0a6ed
Compare
12e695d
to
78640c5
Compare
For later reference, these are the pages untouched by this and #12125:
|
57a3938
to
60fe438
Compare
@nabijaczleweli this can now be rebased on master which includes the modernization patches. |
a696095
to
b10b59b
Compare
Rebased, tentatively undrafting, but #12129 (comment) still stands |
b10b59b
to
8b1886c
Compare
8b1886c
to
b20f5a7
Compare
Rebased |
b20f5a7
to
e82e537
Compare
Well,
Plus, making it just |
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.
In general, this looks good. It's a pretty big changeset in terms of diff size, so I admit I skimmed a bit. But I did skim all of the commits and I did quickly view all of the man pages.
I left a few comments. A bunch were about making the pluralization of the summary match the behavior of the command. For example, if a command acts on one pool, it should say "... a ZFS storage pool" and if it can act on multiple pools, it should say "... ZFS storage pools".
I tried to mark things "maybe" where I wasn't sure.
@nabijaczleweli Can you make one pass through to check the pluralization and merge anything else that seems sane? Then (barring objections), we should be able to get this merged.
In rereading some pages, it turned out I just delinted some of them without fixing the glaring holes – this has been addressed, alongside some titles, as seen above. I've amended all pages to where they should be, but here's the interdiff from the version you reviewed: inter.diff.gz |
b64aeb6
to
518bf04
Compare
Skimming the interdiff, that looks fine to me. I see you've replaced ... with an actual ellipse character, but that's probably fine. After all, it's 2021 and Unicode support should be reasonably prevalent. I'm not sure that we need to cater to anything non-UTF-8. |
Yeah, I've already done that intermittently but decided to enforce it on all arguments for consistency (and because it looks infinitely better, and isn't three full cells wide) |
518bf04
to
dc002dd
Compare
dc002dd
to
faceb04
Compare
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.
It's a big change :) Thank you.
I confirmed mandoc -Tlint
no longer complains about these files though I only skimmed through the diffs.
Can you squash the commits keeping only those worth preserving? A single a commit would be good too.
faceb04
to
0eb4a69
Compare
Squashed all manpage commits into one big one |
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.
With the caveat that I don't agree with dropping articles ("a", "an", "the") from the command summaries (both because it reads better and because I think it subtly provides useful information about whether the command acts on a single or multiple objects), I think this is good to merge.
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
0eb4a69
to
4e76f16
Compare
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.
zfs-jail was kinda soupy, I desoupified it, but it could still be wet?
The updated version looks right to me. My only thought is it wouldn't be bad to make it very clear this functionality only applies to FreeBSD. Of course, it's probably not needed since it's right there in the name, "zfs-jail — attach or detach ZFS filesystem from FreeBSD jail".
zfs-project was as well, to a lesser extent, and what triggered Set mode was unclear to me: I assumed it's zfs project -p id with no other flags – is that right?
That's right, The updated page looks good too, a little less wordy in places which is nice.
The one .br subcommand in zfs send --redact redaction_bookmark [-DLPcenpv] [-i snapshot|bookmark] snapshot (here and here): is it just line-broken (which is what I assumed) or is it two commands with the same description?
You got it right. It's just one command.
I skimmed over the rest of the pages and they all looked reasonable to me. Definitely a big step in the right direction, thanks!
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
4e76f16
to
a054cf0
Compare
Point; added the "Jails are a .Fx feature and are not relevant on other platforms." blurb from zfsprops(8) to the last paragraph after "See .Xr jail 8 for more information on managing jails." |
@nabijaczleweli when testing this on Ubuntu 20.04 I was able to consistently reproduce the following warning. It looks like for newer versions of diff --git a/scripts/mancheck.sh b/scripts/mancheck.sh
index 65f32a78b..a5b8b0d0a 100755
--- a/scripts/mancheck.sh
+++ b/scripts/mancheck.sh
@@ -29,7 +29,7 @@ IFS="
files="$(find "$@" -type f -name '*[1-9]*' ! -name '*module-param*' ! -name 'zpool>
add_excl="$(awk '
- /^.\\\" lint-ok:/ {
+ /^.\\" lint-ok:/ {
print "-e"
$1 = "mandoc:"
$2 = FILENAME ":[[:digit:]]+:[[:digit:]]+:"
|
Yeah, that looks good! Thanks for catching this |
Reviewed-by: Richard Laager <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Nguyen <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #12129
Reviewed-by: Richard Laager <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Nguyen <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#12129
Reviewed-by: Richard Laager <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Nguyen <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#12129
Reviewed-by: Richard Laager <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Nguyen <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#12129
Reviewed-by: Richard Laager <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Nguyen <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#12129
Reviewed-by: Richard Laager <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Nguyen <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#12129
Motivation and Context
#12125 (comment)
Description
On top of #12125 right now, but uhh see first commit for the linter impl, rest are generated; it might be preferable to squash them (all? except for a few?)
Also general cleanup and/or style alignment of the manpages I touch anyway and flattening single-variant subcommands
Posting this because I'll forget otherwise and my wrist is killing me so I won't forseeably finish this in this sitting
How Has This Been Tested?
Looked at it
Types of changes
Checklist:
Signed-off-by
.