Whamcloud - gitweb
libext2fs: fix unix_io's Direct I/O support
authorTheodore Ts'o <tytso@mit.edu>
Fri, 26 Feb 2021 22:41:06 +0000 (17:41 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 26 Feb 2021 23:01:41 +0000 (18:01 -0500)
commitc001596110e834a85b01a47a20811b318cb3b9e4
tree29f015bdc052b8d871ef749643c64a9b46459ec3
parentc176c240cbd12eca5de45df0d13f4b139ae15c3d
libext2fs: fix unix_io's Direct I/O support

The previous Direct I/O support worked on HDD's with 512 byte logical
sector sizes, and on FreeBSD which required 4k aligned memory buffers.
However, it was incomplete and was not correctly working on HDD's with
4k logical sector sizes (aka Advanced Format Disks).

Based on a patch from Alexey Lyashkov <alexey.lyashkov@hpe.com> but
rewritten to work with the latest e2fsprogs and to minimize changes to
make it easier to review.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reported-by: Artem Blagodarenko <artem.blagodarenko@gmail.com>
lib/ext2fs/io_manager.c
lib/ext2fs/unix_io.c