rbd: fix crash with zero sized image
authorPan Liu <pan.liu@istuary.com>
Sat, 12 Nov 2016 15:26:57 +0000 (23:26 +0800)
committerJens Axboe <axboe@fb.com>
Sat, 12 Nov 2016 15:36:23 +0000 (08:36 -0700)
commit206c546d6015fe3809b8e52ea95f56114b8e9f25
tree5b7e98adf8c48aa955f3ea843ea3bdd1679cbc24
parent4e7a881493790a3a2b970988aef4bd3603877fab
rbd: fix crash with zero sized image

When the user create a rbd image with size zero, and specify the
"size" larger than zero in fio option, rbd will crash.

Signed-off-by: Pan Liu <pan.liu@istuary.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
engines/rbd.c