diff options
author | Karel Zak | 2014-10-09 12:10:36 +0200 |
---|---|---|
committer | Karel Zak | 2014-10-09 12:10:36 +0200 |
commit | bcdeacd7962a84f59aa805bd2b4ea3a213ff86d4 (patch) | |
tree | e456cb78e451f4d1469c71a9e40730216f1e3411 /disk-utils/sfdisk.c | |
parent | libfdisk: (gpt) follow explicit size, fiz size+1 buf (diff) | |
download | kernel-qcow2-util-linux-bcdeacd7962a84f59aa805bd2b4ea3a213ff86d4.tar.gz kernel-qcow2-util-linux-bcdeacd7962a84f59aa805bd2b4ea3a213ff86d4.tar.xz kernel-qcow2-util-linux-bcdeacd7962a84f59aa805bd2b4ea3a213ff86d4.zip |
libfdisk: (dos) follow explicit sizes
* this patch add to dos driver support for fdisk_partition->size_explicit
to avoid unexpected last sector alignment for sizes explicitly specified
in sectors
* add support for small "first LBA", the current default is to use
1MiB offset for the first partition and for each EBR. This is not
backwardly compatible and it makes impossible to apply sfdisk
scripts/dumps from old systems, because original offset can be
smaller than 2048 sectors (old sfdisk default is 1 sector).
The solution is on the fly to detect this situation and change
fdisk_context->first_lba to 1 sector. Nasty.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/sfdisk.c')
0 files changed, 0 insertions, 0 deletions