]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sfdisk: (--move-data) keep step size based on optimal I/O
authorKarel Zak <kzak@redhat.com>
Fri, 6 Sep 2019 11:53:50 +0000 (13:53 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 6 Sep 2019 13:05:59 +0000 (15:05 +0200)
commit4ce4675cce59b6d0ddc730db64bfce30433af39f
treec5a53b94eb7fafd4d7064a1ab3b26bcf1703490f
parent1116884cf7de88727845c0ee5c2ee7cb440e44d7
sfdisk: (--move-data) keep step size based on optimal I/O

The current implementation is too paranoid and tries to keep in
memory only data which are on disk too. It means very small step size
when move partition only a few sectors left/right.

This patch enlarge the buffer to at least 1MiB and aligned to optimal
I/O.

Addresses: https://github.com/karelzak/util-linux/issues/848
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/sfdisk.c