Merge lp:~cldunlap1/ubuntu/natty/mountall/fix-for-805509 into lp:ubuntu/natty/mountall

Proposed by Chad Dunlap
Status: Needs review
Proposed branch: lp:~cldunlap1/ubuntu/natty/mountall/fix-for-805509
Merge into: lp:ubuntu/natty/mountall
Diff against target: 48 lines (+30/-0)
2 files modified
debian/changelog (+6/-0)
man/mountall.8 (+24/-0)
To merge this branch: bzr merge lp:~cldunlap1/ubuntu/natty/mountall/fix-for-805509
Reviewer Review Type Date Requested Status
Colin Watson Needs Fixing
Review via email: mp+69128@code.launchpad.net

Description of the change

I added the 'OPTIONS' section to the mountall man page. This is my first bug fix, so please review this. If any changes need to be made, I would love to make them for you. Please email <email address hidden> for any additional information.

Thank You,
Chad Dunlap

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

On Mon, Jul 25, 2011 at 04:39:31PM -0000, Chad Dunlap wrote:
> === modified file 'man/mountall.8'
> --- man/mountall.8 2009-09-16 22:38:18 +0000
> +++ man/mountall.8 2011-07-25 16:39:25 +0000
> @@ -6,6 +6,30 @@
> .SH SYNOPSIS
> .B mountall
> .RI [ OPTIONS ]...
> +.SH OPTIONS
> +
> +--daemon Detach and run in the background
> +
> +--force-fsck Force check of all filesystems
> +
> +--fsck-fix Attempt to fix all fsck errors
> +
> +--no-events Do not emit events after mounting filesystems
> +
> +--dev-wait-time=value in seconds (Default is 30 seconds, Legal value between 1second to 2147483647 seconds
> +.RS <margin position>
> + In case of (bootwait,timeout): specify the time to wait for device to be detected
> +
> +-q, --quiet reduce output to errors only
> +
> +-v, --verbose increase output to include informational messages
> +
> +--help display this help and exit
> +
> +--version output version information and exit
> +
> +By default, mountall does not detach from the console and remains in the foreground. Use
> +the --daemon option to have it detach.

Thanks for your patch!

This needs to be written rather differently in order to be formatted
properly, because manual page source is run through a specialised set of
processors.

You should use "\-" rather than "-" when you mean a literal "-"
character instead of a hyphen.

Options should be in bold.

Instead of laying out a table using tabs, you should do something like
this:

  .TP
  .B \-\-daemon
  Detach and run in the background.
  .TP
  .B \-\-force\-fsck
  Force check of all filesystems.
  ...
  .TP
  .B \-\-version
  Output version information and exit.
  .PP
  By default, mountall does not detach from the console and remains in
  the foreground.
  Use the \-\-daemon option to have it detach.

This should remove the need for that .RS business as well - everything
from the second line after .TP onwards until the next paragraph break is
indented.

Conventionally, the OPTIONS section should come after the DESCRIPTION
section.

You can read 'man groff_man' for more details on the formatting language
used here, and you can test your page using 'man -l'.

Revision history for this message
Colin Watson (cjwatson) :
review: Needs Fixing
Revision history for this message
Chad Dunlap (cldunlap1) wrote :

On Monday, July 25, 2011 12:58:44 PM you wrote:
> On Mon, Jul 25, 2011 at 04:39:31PM -0000, Chad Dunlap wrote:
> > === modified file 'man/mountall.8'
> > --- man/mountall.8 2009-09-16 22:38:18 +0000
> > +++ man/mountall.8 2011-07-25 16:39:25 +0000
> > @@ -6,6 +6,30 @@
> >
> > .SH SYNOPSIS
> > .B mountall
> > .RI [ OPTIONS ]...
> >
> > +.SH OPTIONS
> > +
> > +--daemon Detach and run in the background
> > +
> > +--force-fsck Force check of all filesystems
> > +
> > +--fsck-fix Attempt to fix all fsck errors
> > +
> > +--no-events Do not emit events after mounting filesystems
> > +
> > +--dev-wait-time=value in seconds (Default is 30 seconds, Legal value
> > between 1second to 2147483647 seconds +.RS <margin position>
> > + In case of (bootwait,timeout): specify the time to wait for
device to
> > be detected +
> > +-q, --quiet reduce output to errors only
> > +
> > +-v, --verbose increase output to include informational
messages
> > +
> > +--help display this help and exit
> > +
> > +--version output version information and exit
> > +
> > +By default, mountall does not detach from the console and remains in
the
> > foreground. Use +the --daemon option to have it detach.
>
> Thanks for your patch!
>
> This needs to be written rather differently in order to be formatted
> properly, because manual page source is run through a specialised set of
> processors.
>
> You should use "\-" rather than "-" when you mean a literal "-"
> character instead of a hyphen.
>
> Options should be in bold.
>
> Instead of laying out a table using tabs, you should do something like
> this:
>
> .TP
> .B \-\-daemon
> Detach and run in the background.
> .TP
> .B \-\-force\-fsck
> Force check of all filesystems.
> ...
> .TP
> .B \-\-version
> Output version information and exit.
> .PP
> By default, mountall does not detach from the console and remains in
> the foreground.
> Use the \-\-daemon option to have it detach.
>
> This should remove the need for that .RS business as well - everything
> from the second line after .TP onwards until the next paragraph break is
> indented.
>
> Conventionally, the OPTIONS section should come after the DESCRIPTION
> section.
>
> You can read 'man groff_man' for more details on the formatting language
> used here, and you can test your page using 'man -l'.

Thank you for the comments. I will get working on the suggestions you
made. I had some trouble with the formatting. I think the information you
provided will help me clear up those questions.

Thanks again, and I will get a new fixed posted as soon as I can.

--

Thank You,
Chad Dunlap

Revision history for this message
Chad Dunlap (cldunlap1) wrote :
Download full text (3.2 KiB)

On Monday, July 25, 2011 01:36:39 PM you wrote:
> On Monday, July 25, 2011 12:58:44 PM you wrote:
> > On Mon, Jul 25, 2011 at 04:39:31PM -0000, Chad Dunlap wrote:
> > > === modified file 'man/mountall.8'
> > > --- man/mountall.8 2009-09-16 22:38:18 +0000
> > > +++ man/mountall.8 2011-07-25 16:39:25 +0000
> > > @@ -6,6 +6,30 @@
> > >
> > > .SH SYNOPSIS
> > > .B mountall
> > > .RI [ OPTIONS ]...
> > >
> > > +.SH OPTIONS
> > > +
> > > +--daemon Detach and run in the background
> > > +
> > > +--force-fsck Force check of all filesystems
> > > +
> > > +--fsck-fix Attempt to fix all fsck errors
> > > +
> > > +--no-events Do not emit events after mounting filesystems
> > > +
> > > +--dev-wait-time=value in seconds (Default is 30 seconds, Legal value
> > > between 1second to 2147483647 seconds +.RS <margin position>
> > > + In case of (bootwait,timeout): specify the time to wait for
>
> device to
>
> > > be detected +
> > > +-q, --quiet reduce output to errors only
> > > +
> > > +-v, --verbose increase output to include informational
>
> messages
>
> > > +
> > > +--help display this help and exit
> > > +
> > > +--version output version information and exit
> > > +
> > > +By default, mountall does not detach from the console and remains
in
>
> the
>
> > > foreground. Use +the --daemon option to have it detach.
> >
> > Thanks for your patch!
> >
> > This needs to be written rather differently in order to be formatted
> > properly, because manual page source is run through a specialised set
of
> > processors.
> >
> > You should use "\-" rather than "-" when you mean a literal "-"
> > character instead of a hyphen.
> >
> > Options should be in bold.
> >
> > Instead of laying out a table using tabs, you should do something like
> >
> > this:
> > .TP
> > .B \-\-daemon
> > Detach and run in the background.
> > .TP
> > .B \-\-force\-fsck
> > Force check of all filesystems.
> > ...
> > .TP
> > .B \-\-version
> > Output version information and exit.
> > .PP
> > By default, mountall does not detach from the console and remains in
> > the foreground.
> > Use the \-\-daemon option to have it detach.
> >
> > This should remove the need for that .RS business as well - everything
> > from the second line after .TP onwards until the next paragraph break is
> > indented.
> >
> > Conventionally, the OPTIONS section should come after the DESCRIPTION
> > section.
> >
> > You can read 'man groff_man' for more details on the formatting
language
> > used here, and you can test your page using 'man -l'.
>
> Thank you for the comments. I will get working on the suggestions you
> made. I had some trouble with the formatting. I think the information you
> provided will help me clear up those questions.
>
> Thanks again, and I will get a new fixed posted as soon as I can.

I have made the necessary changes. Please review and let me know if you
need any more changes.

The only way I could get the option and the description of the option to print
on the same line, where appropriate, was to use the .TP 20 command. If I
didn't the description would print, indented, under the option.

Thanks for the information ...

Read more...

Unmerged revisions

359. By Chad Dunlap <email address hidden>

Added the 'OPTIONS' section to the man page (LP#805509)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-04-13 12:59:22 +0000
3+++ debian/changelog 2011-07-25 16:39:25 +0000
4@@ -1,3 +1,9 @@
5+mountall (2.25ubuntu3) natty; urgency=low
6+
7+ * Added the 'OPTIONS' section to the man page (LP#805509)
8+
9+ -- Chad Dunlap <cldunlap@BA120470> Mon, 25 Jul 2011 12:29:18 -0400
10+
11 mountall (2.25ubuntu1) natty; urgency=low
12
13 * Fixed two errors found while browsing the code: 1) find_mount("/") returns
14
15=== modified file 'man/mountall.8'
16--- man/mountall.8 2009-09-16 22:38:18 +0000
17+++ man/mountall.8 2011-07-25 16:39:25 +0000
18@@ -6,6 +6,30 @@
19 .SH SYNOPSIS
20 .B mountall
21 .RI [ OPTIONS ]...
22+.SH OPTIONS
23+
24+--daemon Detach and run in the background
25+
26+--force-fsck Force check of all filesystems
27+
28+--fsck-fix Attempt to fix all fsck errors
29+
30+--no-events Do not emit events after mounting filesystems
31+
32+--dev-wait-time=value in seconds (Default is 30 seconds, Legal value between 1second to 2147483647 seconds
33+.RS <margin position>
34+ In case of (bootwait,timeout): specify the time to wait for device to be detected
35+
36+-q, --quiet reduce output to errors only
37+
38+-v, --verbose increase output to include informational messages
39+
40+--help display this help and exit
41+
42+--version output version information and exit
43+
44+By default, mountall does not detach from the console and remains in the foreground. Use
45+the --daemon option to have it detach.
46 .\"
47 .SH DESCRIPTION
48 .B mountall

Subscribers

People subscribed via source and target branches

to all changes: