summaryrefslogtreecommitdiffstats
path: root/misc-utils/script.c
diff options
context:
space:
mode:
authorKarel Zak2010-04-28 14:40:46 +0200
committerKarel Zak2010-04-28 14:40:46 +0200
commit6a2de3f13134dfd49eb93c7b15552de81b868c8a (patch)
treedbb776360c23ea72c32bb3572e56936d4bf6ad98 /misc-utils/script.c
parentfdisk: improve add partition dialog (diff)
downloadkernel-qcow2-util-linux-6a2de3f13134dfd49eb93c7b15552de81b868c8a.tar.gz
kernel-qcow2-util-linux-6a2de3f13134dfd49eb93c7b15552de81b868c8a.tar.xz
kernel-qcow2-util-linux-6a2de3f13134dfd49eb93c7b15552de81b868c8a.zip
fdisk: improve 'move begin of partition' command
The 'b' command ("move beginning of data in a partition") implementation is too restricted. For example: Device Boot Start End Blocks Id System /dev/sdb1 2048 22527 10240 83 Linux .... Partition number (1-4): 1 New beginning of data (2048-22527, default 2048): ^^^^^^^^^^ the range is defined by the current partition size. New version: Partition number (1-4): 1 New beginning of data (1-22527, default 2048): ^^^^^^^ allows to move the begin to arbitrary place if the place is not allocated by any other partition. This is useful for people who don't want to use the default partitioning (1MiB offset, 1MiB grain). The 'b' command is expert command and does not force users to use an aligned LBA (fdisk(8) still prints warning (in 'p' command) if any partition is not aligned to the physical sector boundary). Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/script.c')
0 files changed, 0 insertions, 0 deletions