]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: don't ignore 1MiB granularity on 512-byte sector devices
authorKarel Zak <kzak@redhat.com>
Mon, 23 Jul 2012 21:09:41 +0000 (23:09 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 24 Jul 2012 10:28:35 +0000 (12:28 +0200)
commit594304d56d2238315ebc64347a963acab398b83d
treee6dd098773b216c82401ab09bfd913dcfe8d7903
parent685fe42e124e8f7beea6251585ed23bd45d53642
fdisk: don't ignore 1MiB granularity on 512-byte sector devices

Note that +10MB is 100000 (10^N) and relative values (+<size>
convention) should be be aligned to the default grain (= 1 MiB).

Old version:

  Last sector, +sectors or +size{K,M,G} (2048-2047999, default 2047999): +10MB
  Partition 1 of type Linux and of size 9.5 MiB is set
  ...
  /dev/loop0p1            2048       21578        9765+  83  Linux
  /dev/loop0p2           21579       43062       10742   83  Linux

New version:
  Last sector, +sectors or +size{K,M,G} (2048-2047999, default 2047999): +10MB
  Partition 1 of type Linux and of size 10 MiB is set
  ...
  /dev/loop0p1            2048       22527       10240   83  Linux
  /dev/loop0p2           22528       43007       10240   83  Linux

Addresses: http://thread.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/5913/focus=5929
Reported-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/fdisk.c