Make it work on opensolaris
[fio.git] / init.c
diff --git a/init.c b/init.c
index 56a1d331625ae6804bb92540a36551bd4a855d34..00eb592bef7fadddc1314a77658b26c2637475de 100644 (file)
--- a/init.c
+++ b/init.c
@@ -307,7 +307,7 @@ static int fixup_options(struct thread_data *td)
        }
 
        if (o->fill_device && !o->size)
-               o->size = ULONG_LONG_MAX;
+               o->size = -1ULL;
 
        if (td_rw(td) && td->o.verify != VERIFY_NONE)
                log_info("fio: mixed read/write workload with verify. May not "