commit | 9cc935a15e2ca54e6bdff4c18bd432dff3fbfaee | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@suse.de> | Tue Jun 13 09:11:18 2006 +0200 |
committer | Jens Axboe <axboe@suse.de> | Tue Jun 13 09:11:18 2006 +0200 |
tree | 459fb3ae0487fcba16b7b56f5db69159bb97fda2 | |
parent | e4f26f0245491bcb4b10606e50f075c586687f16 [diff] [blame] |
[PATCH] Remove last remnants of file extending
diff --git a/init.c b/init.c index 40fcf1c..32d1e5c 100644 --- a/init.c +++ b/init.c
@@ -122,6 +122,12 @@ if (td->zone_size && !td->sequential) td->zone_size = 0; + /* + * Reads can do overwrites, we always need to pre-create the file + */ + if (td_read(td) || td_rw(td)) + td->overwrite = 1; + td->filetype = FIO_TYPE_FILE; if (!stat(jobname, &sb)) { if (S_ISBLK(sb.st_mode))