From: rootfs Date: Tue, 19 Aug 2014 18:42:45 +0000 (-0400) Subject: fix re-open failure issue when using gluster ioengine X-Git-Tag: fio-2.1.12~8 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=e6590c12f4a8c3f6de2adc9e127b1d2a0585ffae;hp=b74e419ec6152ae2dd4b9f36c2559961f4fab5cf fix re-open failure issue when using gluster ioengine Signed-off-by: rootfs --- diff --git a/engines/glusterfs.c b/engines/glusterfs.c index 52006b04..52df9e8a 100644 --- a/engines/glusterfs.c +++ b/engines/glusterfs.c @@ -260,7 +260,7 @@ int fio_gf_open_file(struct thread_data *td, struct fio_file *f) dprint(FD_FILE, "fio %p created %s\n", g->fs, f->file_name); f->fd = -1; f->shadow_fd = -1; - + td->o.open_files ++; return ret; } diff --git a/examples/gfapi.fio b/examples/gfapi.fio new file mode 100644 index 00000000..ccc81237 --- /dev/null +++ b/examples/gfapi.fio @@ -0,0 +1,16 @@ +# Test opening a file from multiple jobs. +# Originally authored by Castor Fu +[global] +ioengine=gfapi +volume=vol +brick=localhost +create_on_open=1 +rw=write + +[reopen_file_test] +nrfiles=4 +filesize=16k +size=64k +openfiles=2 +rw=write +filename_format=reopen_test.$filenum