summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2005-12-01 09:50:05 +0100
committerJens Axboe <axboe@suse.de>2005-12-01 09:50:05 +0100
commite8403a9c4b651cfe63589a47eec9ae482f564d0e (patch)
tree251e5d70b8947e3f28be1d1ffb1618a6e8e5c067
parente79c92594a4237f747740e1e97a98d294d80daee (diff)
[PATCH] fio: 'overwrite' parameter needs to take a value
-rw-r--r--README.fio1
-rw-r--r--fio-ini.c9
2 files changed, 5 insertions, 5 deletions
diff --git a/README.fio b/README.fio
index a353eff..b87f616 100644
--- a/README.fio
+++ b/README.fio
@@ -24,6 +24,7 @@ The <jobs> format is as follows:
directory=x Use 'x' as the top level directory for storing files
rw=0/1 0 is read, 1 is write
+ overwrite=x If 'x', layout a write file first.
prio=x Run io at prio X, 0-7 is the kernel allowed range
prioclass=x Run io at prio class X
file=foo Do the io to file foo
diff --git a/fio-ini.c b/fio-ini.c
index 77b61dc..c1d01f9 100644
--- a/fio-ini.c
+++ b/fio-ini.c
@@ -564,6 +564,10 @@ int parse_jobs_ini(char *file)
fgetpos(f, &off);
continue;
}
+ if (!check_int(p, "overwrite", &td->overwrite)) {
+ fgetpos(f, &off);
+ continue;
+ }
if (!check_range(p, "bsrange", &ul1, &ul2)) {
if (ul1 & 511)
printf("bad min block size, must be a multiple of 512\n");
@@ -641,11 +645,6 @@ int parse_jobs_ini(char *file)
fgetpos(f, &off);
continue;
}
- if (!check_strset(p, "overwrite")) {
- td->overwrite = 1;
- fgetpos(f, &off);
- continue;
- }
if (!check_strset(p, "exitall")) {
exitall_on_terminate = 1;
fgetpos(f, &off);