Merge branch 'master' of ssh://git.kernel.dk/data/git/fio
authorJens Axboe <axboe@fb.com>
Sun, 6 Apr 2014 15:57:59 +0000 (09:57 -0600)
committerJens Axboe <axboe@fb.com>
Sun, 6 Apr 2014 15:57:59 +0000 (09:57 -0600)
filesetup.c

index fa09219..bf05b6f 100644 (file)
@@ -806,7 +806,7 @@ int setup_files(struct thread_data *td)
         * Calculate per-file size and potential extra size for the
         * first files, if needed.
         */
-       if (!o->file_size_low) {
+       if (!o->file_size_low && o->nr_files) {
                uint64_t all_fs;
 
                fs = o->size / o->nr_files;