]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: fdisk: add regression test for missing EBR gap between logical partitions
authorMartin Jungblut Schreiner <martinjungblut@gmail.com>
Mon, 29 Dec 2025 23:46:39 +0000 (20:46 -0300)
committerMartin Jungblut Schreiner <martinjungblut@gmail.com>
Mon, 29 Dec 2025 23:46:39 +0000 (20:46 -0300)
commitbf3d4aeec708fae7aa30530a1bf42ee1d35366f8
treecf686aa141afac40e7b757aa349dd957af2d99b8
parent8b8da020f57414c90981371da71fdf32d2253ac7
tests: fdisk: add regression test for missing EBR gap between logical partitions

Add a DOS/MBR test case where the first logical partition starts at 6145
(extended start 2048). In the regressed behaviour fdisk allows the next
logical partition to start at prev_end+1, which would place its EBR
(start - 2048) inside the previous logical partition.

The expected behaviour is to require the next starting sector to be at least
prev_end + 2048 + 1 (e.g. 790528 in the testcase).

Closes issue #3925.
tests/expected/fdisk/mbr-logical-ebr-gap [new file with mode: 0644]
tests/ts/fdisk/mbr-logical-ebr-gap [new file with mode: 0755]