]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sfdisk: fix backward --move-data
authorKarel Zak <kzak@redhat.com>
Fri, 6 Nov 2020 10:38:51 +0000 (11:38 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 13 Nov 2020 11:35:35 +0000 (12:35 +0100)
commit03fbc0ed4c17a4477c7a6bd71715fa79e278d9f3
treeb131022212481df8e8486989bc6f419a8b4fd186
parent0b6bd5c12d28956400a7f7adb0a5444a8fcc53b5
sfdisk: fix backward --move-data

* fix final message where number of moved sectors overflow number of
  all moved sectors

* align last step size before we use it for backward mode source and
  destination offsets calculation

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