X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Frbd.c;h=39501eb00551a1b1572c7a5bdc7921a5684e602c;hb=f7c305464667b118b62aff9b846d1a939fbc1547;hp=4bae425cb3d088efb4b926582b550324a19b178d;hpb=29ac257cb18a38c20f970bd02f2bfb3a027309d5;p=fio.git diff --git a/engines/rbd.c b/engines/rbd.c index 4bae425c..39501eb0 100644 --- a/engines/rbd.c +++ b/engines/rbd.c @@ -517,6 +517,7 @@ static int fio_rbd_queue(struct thread_data *td, struct io_u *io_u) } else { dprint(FD_IO, "%s: Warning: unhandled ddir: %d\n", __func__, io_u->ddir); + r = -EINVAL; goto failed_comp; } @@ -604,7 +605,7 @@ static int fio_rbd_setup(struct thread_data *td) goto cleanup; } - dprint(FD_IO, "rbd-engine: image size: %lu\n", info.size); + dprint(FD_IO, "rbd-engine: image size: %" PRIu64 "\n", info.size); /* taken from "net" engine. Pretend we deal with files, * even if we do not have any ideas about files.