diff options
author | Karel Zak | 2014-11-20 13:11:38 +0100 |
---|---|---|
committer | Karel Zak | 2014-11-20 13:11:38 +0100 |
commit | 333c3761383d6dd166f032080055e9333b09628c (patch) | |
tree | f8d1552c10c100c40411edc9bf8da2e1a0ca60cb /libuuid | |
parent | aggety: always set default serial line speed (diff) | |
download | kernel-qcow2-util-linux-333c3761383d6dd166f032080055e9333b09628c.tar.gz kernel-qcow2-util-linux-333c3761383d6dd166f032080055e9333b09628c.tar.xz kernel-qcow2-util-linux-333c3761383d6dd166f032080055e9333b09628c.zip |
libfdisk: (dos) allow to maximize partition
The struct fdisk_partition has special flag "end_follow_default" to
make the partition large as much as possible. This patch makes this
flag usable for fdisk_set_partition() function.
Command line example (enlarge the first partition):
# echo ',+' | ./sfdisk -N1 /dev/sdb
...
Disk /dev/sdb: 100 MiB, 104857600 bytes, 204800 sectors
...
Old situation:
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 22527 20480 10M 83 Linux
^^^^^
New situation:
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 204799 202752 99M 83 Linux
^^^^^^
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libuuid')
0 files changed, 0 insertions, 0 deletions