mirror of
https://github.com/versity/scoutfs.git
synced 2026-08-17 04:36:38 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user