[PATCH Various fixes
- Multiple files fixes
- Fix for unaligned io issued for raw io
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.h b/fio.h
index 915c0b5..4be037e 100644
--- a/fio.h
+++ b/fio.h
@@ -131,6 +131,7 @@
FIO_SYNCIO = 1 << 0,
FIO_CPUIO = 1 << 1,
FIO_MMAPIO = 1 << 2,
+ FIO_RAWIO = 1 << 3,
};
struct fio_file {
@@ -150,6 +151,8 @@
unsigned long *file_map;
unsigned int num_maps;
+
+ int fileno;
};
/*
@@ -504,6 +507,6 @@
#define fio_unused __attribute((__unused__))
#define for_each_file(td, f, i) \
- for ((i) = 0, (f) = &(td)->files[(i)]; (i) < (td)->nr_files; (i)++, (f) = &(td)->files[(i)])
+ for ((i) = 0, (f) = &(td)->files[0]; (i) < (td)->nr_files; (i)++, (f) = &(td)->files[(i)])
#endif