Add iomap support including direct I/O

Switch many code paths to use iomap instead of get_block. This includes
buffered reads and writes, llseek, fiemap, and new support for direct
I/O.

Add KC_USE_IOMAP_FOR_IO and only build the iomap R/W pieces
for EL9.5 and higher. We support iomap for fiemap and llseek
on EL8 and EL9.4.

Signed-off-by: Chris Kirby <ckirby@versity.com>
This commit is contained in:
Chris Kirby
2026-07-27 15:03:51 -05:00
parent be25e37c8b
commit 0b2aef4f59
15 changed files with 1231 additions and 295 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ static void *run_test_func(void *ptr)
for (read = 0; read < size;) {
ret = pread(fd, buf, size - read, read);
if (ret < 0) {
perror("pwrite");
perror("pread");
exit(-1);
}
read += ret;