[parted-devel] [PATCH 06/10] Correctly describe mkpart command in documentation.

Joel Granados Moreno jgranado at redhat.com
Wed Jun 10 17:05:51 UTC 2009


* doc/parted.texi : Make sure that part-type is portrayed as an
optional argument.  Mention the "special behaviors" that mkpart has
with specific disk label types.
---
 doc/parted.texi |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/doc/parted.texi b/doc/parted.texi
index 936a1f6..8b88453 100644
--- a/doc/parted.texi
+++ b/doc/parted.texi
@@ -673,7 +673,7 @@ Make a @var{fat32} file system on partition 2.
 @cindex mkpart, command description
 @cindex command description, mkpart
 
- at deffn Command mkpart @var{part-type} [@var{fs-type}] @var{start} @var{end}
+ at deffn Command mkpart [@var{part-type} @var{fs-type} @var{name}] @var{start} @var{end}
 
 Creates a new partition, @emph{without} creating a new file system on
 that partition.  This is useful for creating partitions for file systems
@@ -684,8 +684,9 @@ partitions (i.e., non-extended partitions).  @var{start} and @var{end}
 are the offset from the beginning of the disk, that is, the ``distance''
 from the start of the disk.
 
- at var{part-type} is one of: primary, extended, logical.  Extended and
-logical are only used for msdos and dvh disk labels.
+ at var{part-type} is one of: primary, extended, logical.  These must only be
+used with msdos and dvh disk labels. @var{name} must be used with gpt disk
+labels. @var{part-type} and @var{name} must not be used with sun disk labels.
 
 @var{fs-type} must be on of these supported file systems:
 @itemize @bullet
-- 
1.6.0.6




More information about the parted-devel mailing list