filesetup: fix a bug where we overwrite the set size
authorJens Axboe <axboe@fb.com>
Tue, 30 Sep 2014 03:23:51 +0000 (21:23 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 30 Sep 2014 03:23:51 +0000 (21:23 -0600)
commit0bc27b0b7019e4c386f83258430fb6b3ac34cc06
tree1281f237202d04a59905ebf08c95070d4dcb37fc
parentdf73aab128ff3f1ff5091fb0b5a0e7728f86499f
filesetup: fix a bug where we overwrite the set size

For the null io engine, we don't set file sizes. And we should
not overwrite a potentially legitimate o->size, if total_size
is zero.

Signed-off-by: Jens Axboe <axboe@fb.com>
filesetup.c