]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sfdisk: make sure we do not overlap on --move
authorKarel Zak <kzak@redhat.com>
Thu, 23 Jan 2020 11:44:58 +0000 (12:44 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 23 Jan 2020 11:44:58 +0000 (12:44 +0100)
commit2b26438c4bf90b7836111cc49d847ee89e49bfa8
tree56787e865c2251cf5be397d0c1e23805dc074b01
parentd35573591278a231a62cefdbee5b0beb0fb62dc8
sfdisk: make sure we do not overlap on --move

The area we need to move does not have to be aligned to optimal I/O
size (step size) -- we need to be sure we do not move data
after/before the area.

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