On Nov 14 14:17:08, [email protected] wrote:
> Modified files:
> sbin/fdisk : disk.c fdisk.c
>
> Log message:
> Since -l is ignored if -c/-h/-s are specified, make that combination
> invalid and mention the constraint in usage().
Mention it in the manpage too.
Jan
Index: fdisk.8
===================================================================
RCS file: /cvs/src/sbin/fdisk/fdisk.8,v
retrieving revision 1.87
diff -u -p -r1.87 fdisk.8
--- fdisk.8 26 Oct 2015 18:05:25 -0000 1.87
+++ fdisk.8 17 Nov 2015 08:34:38 -0000
@@ -79,6 +79,8 @@ These figures are taken from the in-core
or values that
.Em /boot
has passed to the kernel.
+These options are mutually exclusive with
+.Fl l .
.It Fl e
Use the
.Nm
@@ -127,6 +129,8 @@ can be specified.
.It Fl l Ar blocks
Specify the number of blocks in the disk, and force the MBR to be in LBA
mode only.
+This option is mutually exclusive with
+.Fl c h s .
.It Fl u
Update MBR bootcode, preserving existing MBR partition table.
The MBR bootcode extends from offset 0x000 to the start of the MBR partition