Blame SOURCES/0044-Document-resizepart-command.patch

2a8729
From c051e9f7eaae007940a73be1509257bd52c569de Mon Sep 17 00:00:00 2001
2a8729
From: Phillip Susi <psusi@ubuntu.com>
2a8729
Date: Sun, 25 May 2014 14:43:39 -0400
2a8729
Subject: [PATCH 44/48] Document resizepart command
2a8729
2a8729
(cherry picked from commit 5c793853fe5cb0718d895c3394fb909c73c6fa1e)
2a8729
2a8729
Related: rhbz#1423357
2a8729
---
2a8729
 doc/C/parted.8  |  4 ++++
2a8729
 doc/parted.texi | 16 ++++++++++++++++
2a8729
 2 files changed, 20 insertions(+)
2a8729
2a8729
diff --git a/doc/C/parted.8 b/doc/C/parted.8
2a8729
index 03bb3a5..5a24c94 100644
2a8729
--- a/doc/C/parted.8
2a8729
+++ b/doc/C/parted.8
2a8729
@@ -95,6 +95,10 @@ Rescue a lost partition that was located somewhere between \fIstart\fP and
2a8729
 \fIend\fP.  If a partition is found, \fBparted\fP will ask if you want to
2a8729
 create an entry for it in the partition table.
2a8729
 .TP
2a8729
+.B resizepart \fIpartition\fP \fIend\fP
2a8729
+Change the \fIend\fP position of \fIpartition\fP.  Note that this does not
2a8729
+modify any filesystem present in the partition.
2a8729
+.TP
2a8729
 .B rm \fIpartition\fP
2a8729
 Delete \fIpartition\fP.
2a8729
 .TP
2a8729
diff --git a/doc/parted.texi b/doc/parted.texi
2a8729
index f10d5e1..d498367 100644
2a8729
--- a/doc/parted.texi
2a8729
+++ b/doc/parted.texi
2a8729
@@ -423,6 +423,7 @@ GNU Parted provides the following commands:
2a8729
 * print::
2a8729
 * quit::
2a8729
 * rescue::
2a8729
+* resizepart::
2a8729
 * rm::
2a8729
 * select::
2a8729
 * set::
2a8729
@@ -715,6 +716,21 @@ It's back!  :)
2a8729
 
2a8729
 @end deffn
2a8729
 
2a8729
+@node resizepart
2a8729
+@subsection resizepart
2a8729
+@cindex resizepart, command description
2a8729
+@cindex command description, resizepart
2a8729
+
2a8729
+@deffn Command resizepart @var{number} @var{end}
2a8729
+
2a8729
+Moves the @var{end} position of partition @var{number}.  Note that this
2a8729
+does not modify any filesystem present in the partition.  If you wish to
2a8729
+do this, you will need to use external tools, such as @command{resize2fs}.
2a8729
+
2a8729
+When growing a partition you will want to grow the filesystem afterwards,
2a8729
+but when shrinking, you need to shrink the filesystem before the partition.
2a8729
+@end deffn
2a8729
+
2a8729
 @node rm
2a8729
 @subsection rm
2a8729
 @cindex rm, command description
2a8729
-- 
2a8729
2.9.4
2a8729