Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Nov 13, 2016

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit 4e7a881493790a3a2b970988aef4bd3603877fab:

Fix duplicated typos from 42d97b5c in fio(1) (2016-11-02 08:05:49 -0600)

are available in the git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to 206c546d6015fe3809b8e52ea95f56114b8e9f25:

rbd: fix crash with zero sized image (2016-11-12 08:36:23 -0700)

----------------------------------------------------------------
Pan Liu (1):
rbd: fix crash with zero sized image

 engines/rbd.c | 5 +++++
 1 file changed, 5 insertions(+)

---

Diff of recent changes:

engines/rbd.c +5 -0
index aa50c80..ee2ce81 100644
@@ -595,7 +595,12 @@ static int fio_rbd_setup(struct thread_data *td)
 	if (r < 0) {
 		log_err("rbd_status failed.\n");
 		goto disconnect;
+	} else if (info.size == 0) {
+		log_err("image size should be larger than zero.\n");
+		r = -EINVAL;
+		goto disconnect;
 	}
+
 	dprint(FD_IO, "rbd-engine: image size: %lu\n", info.size);
 
 	/* taken from "net" engine. Pretend we deal with files,