util-linux/libfdisk
Karel Zak 975b321b5d libfidk: (dos) fix tiny partitions calculation
The code uses last_sector -= 1 for tiny partitions. This does not make
sense. This stupidity has been introduced by (my) badly commented commit
09a4ca5e45 ... sorry.

Fortunately, this issue is visible only for tiny partitions on large
devices (partitions where size < grain; usual grain is 1MiB) if the last
sector is specified by relative notation (+size{siffix}).

Note that "last -= 1" makes sense when the "last" is align to the
optimal I/O boundary; in this case we need to set the end of the
partition one sector before the boundary. For tiny devices it does not
makes sense as we do not align these partitions.

Addresses: https://github.com/karelzak/util-linux/issues/843
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-08-22 14:00:32 +02:00
..
docs libfdisk: add fdisk_assign_device_by_fd() 2019-06-18 13:30:42 +02:00
samples docs: fix typos [codespell] 2019-02-18 13:22:43 +01:00
src libfidk: (dos) fix tiny partitions calculation 2019-08-22 14:00:32 +02:00
COPYING docs: use SPDX license names 2018-08-16 14:47:21 +02:00
Makemodule.am libfdisk: add sample-fdisk-mkpart binary 2017-02-17 16:15:03 +01:00
fdisk.pc.in build-sys: add fdisk.pc 2014-11-26 13:20:16 +01:00