X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=file.h;h=ae0e6fc8996d02f8ca2e5a76629a3dd3cf94b00d;hb=2c870598ec063b3574d0e992d521cae615aa1c73;hp=cc721ee27a33c03e1ed1ff430170bbdec5b77432;hpb=358ffaa6c37acb26e0f507934ba8a6f98f34ffee;p=fio.git diff --git a/file.h b/file.h index cc721ee2..ae0e6fc8 100644 --- a/file.h +++ b/file.h @@ -10,6 +10,9 @@ #include "lib/lfsr.h" #include "lib/gauss.h" +/* Forward declarations */ +struct zoned_block_device_info; + /* * The type of object we are working on */ @@ -64,6 +67,7 @@ enum fio_fallocate_mode { FIO_FALLOCATE_POSIX = 2, FIO_FALLOCATE_KEEP_SIZE = 3, FIO_FALLOCATE_NATIVE = 4, + FIO_FALLOCATE_TRUNCATE = 5, }; /* @@ -86,7 +90,6 @@ struct fio_file { */ unsigned int major, minor; int fileno; - int bs; char *file_name; /* @@ -97,6 +100,11 @@ struct fio_file { uint64_t file_offset; uint64_t io_size; + /* + * Zoned block device information. See also zonemode=zbd. + */ + struct zoned_block_device_info *zbd_info; + /* * Track last end and last start of IO for a given data direction */ @@ -125,7 +133,7 @@ struct fio_file { * if io is protected by a semaphore, this is set */ union { - struct fio_mutex *lock; + struct fio_sem *lock; struct fio_rwlock *rwlock; };