Skip to contentSkip to conversation

partx: add update command

PATCH In review Phillip Susi 1 participant 1 message Dec 5, 2011 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 partx: add update command

Update the kernel partition table to match what is on disk. Remove any extra partitions and add any missing ones.

---
 partx/partx.8 |    6 ++-
 partx/partx.c |   99 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 102 insertions(+), 3 deletions(-)
partx/partx.8 +4 -2
index 4129d78..e67737a 100644
@@ -9,7 +9,7 @@ partx \-
 tell the Linux kernel about the presence and numbering of on-disk partitions
 .SH SYNOPSIS
 .B partx
-.RB [ \-a | \-d | \-s ]
+.RB [ \-a | \-d | \-s | \-u ]
 .RB [ \-t
 .IR TYPE ]
 .RB [ \-n
@@ -18,7 +18,7 @@ tell the Linux kernel about the presence and numbering of on-disk partitions
 .I disk
 
 .B partx
-.RB [ \-a | \-d | \-s ]
+.RB [ \-a | \-d | \-s | \-u ]
 .RB [ \-t
 .IR TYPE ]
 .I partition
@@ -72,6 +72,8 @@ columns can be rearranged with the \fB\-\-output\fP option.
 .IP "\fB\-t, \-\-type \fItype\fP"
 Specify the partition table type -- aix, bsd, dos, gpt, mac, minix, sgi, solaris_x86,
 sun, ultrix or unixware.
+.IP "\fB\-u, \-\-update\fP"
+Update the specified partitions, or read the disk and update all partitions.
 .IP "\fB\-n, \-\-nr \fIM:N\fP"
 Specify the range of partitions.  For backward compatibility also the format
 <M-N> is supported.  The range may contain negative
partx/partx.c +98 -1

135 lines not on this page · raw message

Signature · 1 line
1.7.5.4