]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: ignore 33553920 byte optimal I/O size
authorRyan Finnie <ryan@finnie.org>
Sun, 27 Dec 2020 18:01:26 +0000 (10:01 -0800)
committerKarel Zak <kzak@redhat.com>
Wed, 10 Feb 2021 09:00:00 +0000 (10:00 +0100)
commitec3a4a3960f05a53910d1cb956210c3fba3f3d36
tree69a0d53d94421917f5ffd7f4dc654e541a9f6820
parent3cc000096b4559ded4f550dcc3eaf68337346e3c
libfdisk: ignore 33553920 byte optimal I/O size

33553920 byte optimal I/O size arises from badly-implemented USB SATA
adapters reporting 0xffff 512 byte sectors (32 MiB - 512).  Commit
acb7651f8897ae73d0f45dd75bc87630001c61b9 indirectly addresses this by
ignoring the optimal I/O size if it's not a multiple of the physical
sector size.  That works if the physical sector size is 4096, but
33553920 optimal is allowed for 512 physical.

This commit explicitly ignores 33553920, as there is no legitimate
situation where this number would be the real optimal I/O size.

Signed-off-by: Ryan Finnie <ryan@finnie.org>
Closes: https://github.com/karelzak/util-linux/issues/1221
libfdisk/src/alignment.c