diff options
author | Vincent Deffontaines | 2008-09-16 13:08:12 +0200 |
---|---|---|
committer | Karel Zak | 2008-10-06 11:52:48 +0200 |
commit | c64061c9b306f2db49ba97d066b8487f66a914fa (patch) | |
tree | d491eae63be37f3e4b49b91d400942d3903df05d /fdisk/fdisk.c | |
parent | mount: remove link to namesys.com (diff) | |
download | kernel-qcow2-util-linux-c64061c9b306f2db49ba97d066b8487f66a914fa.tar.gz kernel-qcow2-util-linux-c64061c9b306f2db49ba97d066b8487f66a914fa.tar.xz kernel-qcow2-util-linux-c64061c9b306f2db49ba97d066b8487f66a914fa.zip |
fdisk: suggest partprobe(8) and kpartx(8) when BLKRRPART failed
Signed-off-by: Vincent Deffontaines <vincent@gryzor.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Co-Author: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisk/fdisk.c')
-rw-r--r-- | fdisk/fdisk.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c index add1a0883..a8dfe5d2d 100644 --- a/fdisk/fdisk.c +++ b/fdisk/fdisk.c @@ -1470,7 +1470,7 @@ change_sysid(void) { /* If sgi_label then don't use get_existing_partition, let the user select a partition, since get_existing_partition() only works for Linux like partition tables. */ - if (!sgi_label) { + if (!sgi_label) { i = get_existing_partition(0, partitions); } else { i = get_partition(0, partitions); @@ -2289,11 +2289,9 @@ reread_partition_table(int leave) { } if (i) { - printf(_("\nWARNING: Re-reading the partition table " - "failed with error %d: %s.\n" - "The kernel still uses the old table.\n" - "The new table will be used " - "at the next reboot.\n"), + printf(_("\nWARNING: Re-reading the partition table failed with error %d: %s.\n" + "The kernel still uses the old table. The new table will be used at\n" + "the next reboot or after you run partprobe(8) or kpartx(8)\n"), errno, strerror(errno)); } @@ -2599,7 +2597,7 @@ main(int argc, char **argv) { * fdisk [-b sectorsize] [-u] device * * Options -C, -H, -S set the geometry. - * + * */ while ((c = getopt(argc, argv, "b:C:H:lsS:uvV")) != -1) { switch (c) { |