diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-07-25 13:45:36 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-07-30 18:02:27 +0200 |
commit | 1c3bcfc79f4b6a1d6e8cd04e6a36f64a57753b2f (patch) | |
tree | acbf6333c9e46acc48bf757798da0ab49027a1b6 /util-linux/fdisk_sgi.c | |
parent | 096ccd6a691f3c5e5cdae1a67fd45b9340b14f27 (diff) | |
download | busybox-w32-1c3bcfc79f4b6a1d6e8cd04e6a36f64a57753b2f.tar.gz busybox-w32-1c3bcfc79f4b6a1d6e8cd04e6a36f64a57753b2f.tar.bz2 busybox-w32-1c3bcfc79f4b6a1d6e8cd04e6a36f64a57753b2f.zip |
fdisk: sync up with some util-linux 2.31 behavior
= display default is no longer in cylinders
= +sizeC is no longer supported
= add +sizeT suffix - terabytes are here
= K,M,G,T and k,m,g,t suffixes all are binary, not decimal
= +sizeM results in last sector +(size * 1Mbyte - 1), not +(size * 1Mbyte)
= fix comparison to "YES" answer for sgi/sun
function old new delta
read_int 492 519 +27
fdisk_main 2644 2640 -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 27/-4) Total: 23 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/fdisk_sgi.c')
-rw-r--r-- | util-linux/fdisk_sgi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/fdisk_sgi.c b/util-linux/fdisk_sgi.c index 1cf0af5cc..0e5491a19 100644 --- a/util-linux/fdisk_sgi.c +++ b/util-linux/fdisk_sgi.c | |||
@@ -623,7 +623,7 @@ sgi_change_sysid(int i, int sys) | |||
623 | "retrieve from its directory standalone tools like sash and fx.\n" | 623 | "retrieve from its directory standalone tools like sash and fx.\n" |
624 | "Only the \"SGI volume\" entire disk section may violate this.\n" | 624 | "Only the \"SGI volume\" entire disk section may violate this.\n" |
625 | "Type YES if you are sure about tagging this partition differently.\n"); | 625 | "Type YES if you are sure about tagging this partition differently.\n"); |
626 | if (strcmp(line_ptr, "YES\n") != 0) | 626 | if (strcmp(line_ptr, "YES") != 0) |
627 | return; | 627 | return; |
628 | } | 628 | } |
629 | sgilabel->partitions[i].id = SGI_SSWAP32(sys); | 629 | sgilabel->partitions[i].id = SGI_SSWAP32(sys); |