OSDN Git Service

doc: update parted documentation
authorBrian C. Lane <bcl@redhat.com>
Wed, 1 Feb 2012 21:12:00 +0000 (13:12 -0800)
committerJim Meyering <meyering@redhat.com>
Thu, 2 Feb 2012 15:04:00 +0000 (16:04 +0100)
* doc/parted.text: Add disk_set command.

doc/parted.texi

index e866b44..6561d0e 100644 (file)
@@ -415,6 +415,7 @@ GNU Parted provides the following commands:
 
 @menu
 * align-check::
+* disk_set::
 * help::
 * mklabel::
 * mkpart::
@@ -458,6 +459,36 @@ Example:
 
 @end deffn
 
+@node disk_set
+@subsection disk_set
+@cindex disk_set, command description
+@cindex command description, disk_set
+
+@deffn Command disk_set @var{flag} @var{state}
+
+Changes a flag on the disk.  A flag can be either ``on'' or ``off''.
+Some or all of these flags will be available, depending on what disk
+label you are using:
+
+@table @samp
+
+@item pmbr_boot
+(GPT) - this flag enables the boot flag on the GPT's protective MBR
+partition.
+
+@end table
+
+The disk's flags are displayed by the print command on the "Disk Flags:"
+line.  They are also output as the last field of the disk information
+in machine mode.
+
+@example
+(parted) @kbd{disk_set pmbr_boot on}
+@end example
+
+Set the PMBR's boot flag.
+@end deffn
+
 @node help
 @subsection help
 @cindex help, command description