+ /*
+ * check if we need to lay the file out complete again. fio
+ * does that for operations involving reads, or for writes
+ * where overwrite is set
+ */
+ if (td_read(td) || (td_write(td) && td->o.overwrite))
+ new_layout = 1;
+ if (td_write(td) && !td->o.overwrite)
+ unlink_file = 1;
+
+ if ((unlink_file || new_layout) && (f->flags & FIO_FILE_EXISTS)) {