On Fri, Mar 26, 2010 at 3:25 AM, Jason McIntyre <[email protected]> wrote:
> On Thu, Mar 25, 2010 at 09:05:01PM -0400, Anders Langworthy wrote:
>>
>> Here is an updated diff with that in mind:
>>
>> Index: fdisk.8
>> ===================================================================
>> RCS file: /cvs/src/sbin/fdisk/fdisk.8,v
>> retrieving revision 1.67
>> diff -u -p -u -p -r1.67 fdisk.8
>> --- fdisk.8 B  30 Mar 2009 04:52:50 -0000 B  B  B 1.67
>> +++ fdisk.8 B  26 Mar 2010 01:01:51 -0000
>> @@ -44,7 +44,7 @@ On the i386 and other architectures, sec
>> B must contain MBR bootcode, the MBR partition table containing 4 slots,
>> B and a specific magic number (0xAA55).
>> B The 4 slots in the MBR partition table allow a disk drive to be
>> -sub-divided up into chunks known as MBR partitions.
>> +sub-divided into chunks known as MBR partitions.
>
> hmm. if you can divide sth up (and you can), why can't you sub-divide
> sth up? i don;t actually know if you can or not. i guess this reads
> better.

Nothing grammatically incorrect about either situation, but the "up"
doesn't add anything and feels awkward in the latter case.

>> -The fields of the output are thus:
>> +The fields of the output are:
>
> why is this better?

It's shorter with the same meaning.  Also "thus" implies the following
text is explained by the preceding text (which it isn't, really).

> note also that we document b/k/m/g for the print command. do you think
> there's a way we could avoid duplication here? and if not, is there a
> way we can try and minimise the differences between the two text
> segments?

I agree totally.  Hmm maybe something like this?

Index: fdisk.8
===================================================================
RCS file: /cvs/src/sbin/fdisk/fdisk.8,v
retrieving revision 1.67
diff -u -p -u -p -r1.67 fdisk.8
--- fdisk.8     30 Mar 2009 04:52:50 -0000      1.67
+++ fdisk.8     26 Mar 2010 16:24:32 -0000
@@ -44,7 +44,7 @@ On the i386 and other architectures, sec
 must contain MBR bootcode, the MBR partition table containing 4 slots,
 and a specific magic number (0xAA55).
 The 4 slots in the MBR partition table allow a disk drive to be
-sub-divided up into chunks known as MBR partitions.
+sub-divided into chunks known as MBR partitions.
 .Pp
 On the i386, the BIOS loads sector 0 of the boot disk into memory,
 verifies the magic number, and begins executing the MBR bootcode
@@ -92,9 +92,9 @@ or values that
 .Em /boot
 has passed to the kernel.
 .It Fl e
-Use the interactive edit of
+Use the
 .Nm
-to modify an MBR partition table.
+interactive editor to modify an MBR partition table.
 The editor permits configuration of the MBR partition, as well as
 extended MBR partitions.
 See
@@ -157,7 +157,7 @@ The first MBR partition is a 1225MB FAT-
 the second is a 36GB
 .Ox
 MBR partition using the remainder of the disk.
-The fields of the output are thus:
+The fields of the output are:
 .Bl -tag -width "start/size"
 .It Em "#"
 Number identifying each MBR partition table entry.
@@ -269,27 +269,41 @@ This number will be 2 when editing an ex
 and so on.
 .Pp
 The list of commands and their explanations are given below.
+Commands may be abbreviated provided enough characters are given to ensure
+unambiguity.
 .Bl -tag -width Ds
-.It help
+.It Cm ?\&
+A synonym for
+.Cm help.
+.It Cm help
 Display a list of commands that
 .Nm
 understands in the interactive edit mode.
-.It manual
+.It Cm manual
 Display this manual page.
-.It reinit
+.It Cm reinit
 Initialize the currently selected, in-memory copy of the
 boot block.
-.It disk
+.It Cm disk
 Display the current drive geometry that
 .Nm
 probed using kernel provided information and various heuristics.
 The disk geometry may be changed at this point.
-.It edit Ar #
+.It Cm edit Ar #
 Edit a given table entry in the memory copy of
 the current boot block.
-Sizes may be adjusted using either in BIOS geometry mode or
-sector offsets and sizes.
-.It flag Ar #
+Sizes may be adjusted in BIOS geometry mode or using sector offsets and
sizes.
+Sizes are interpreted as sectors unless a unit is provided by appending
+.Sq b ,
+.Sq k ,
+.Sq m ,
+or
+.Sq g
+to indicate bytes, kilobytes, megabytes, or gigabytes.
+The special size value
+.Sq *
+will cause the partition to be sized to use the remainer of the disk.
+.It Cm flag Ar #
 Make the given MBR partition table entry bootable.
 Only one entry can be marked bootable.
 .\" If you wish to boot from an extended
@@ -297,44 +311,40 @@ Only one entry can be marked bootable.
 .\" extended MBR partition as bootable.
 .\" If an optional value is given, the MBR partition is marked with the
given
 .\" value, and other MBR partitions are not touched.
-.It update
+.It Cm update
 Update the machine MBR bootcode and 0xAA55 signature in the memory copy
 of the currently selected boot block.
 Note that this option will overwrite an NT disk
 signature, if present.
-.It select Ar #
+.It Cm select Ar #
 Select and load into memory the boot block pointed
 to by the extended MBR partition table entry in the current boot block.
-.It setpid Ar #
+.It Cm setpid Ar #
 Change the MBR partition
 identifier of the given MBR partition table entry.
 This command is particularly useful for reassigning
 an existing MBR partition to
 .Ox .
-.It swap Ar # Ar #
+.It Cm swap Ar # Ar #
 Swap two MBR entries.
-.It print Op unit
+.It Cm print Op Ar unit
 Print the currently selected in-memory copy of the boot
 block and its MBR table to the terminal.
 If
 .Ar unit
-is specified as
-.Sq b ,
-.Sq k ,
-.Sq m ,
-or
-.Sq g ,
-the MBR is printed in units of bytes, kilobytes, megabytes, or gigabytes.
-Otherwise the number of sectors is printed.
-.It write
+is given, partition sizes will printed in the specified units.
+Available units are the same as for the
+.Cm edit
+command above.
+.It Cm write
 Write the in-memory copy of the boot block to disk.
-.It exit
+.It Cm exit
 Exit the current level of
 .Nm fdisk ,
 either returning to the
 previously selected in-memory copy of a boot block, or exiting the
 program if there is none.
-.It quit
+.It Cm quit
 Exit the current level of
 .Nm fdisk ,
 either returning to the
@@ -343,7 +353,7 @@ program if there is none.
 Unlike
 .Em exit
 it does write the modified block out.
-.It abort
+.It Cm abort
 Quit program without saving current changes.
 .El
 .Sh FILES

Reply via email to