if (td_write(td) && !td->o.overwrite)
unlink_file = 1;
- if ((unlink_file || new_layout) && (f->flags & FIO_FILE_EXISTS)) {
- if (unlink(f->file_name) < 0) {
+ if (unlink_file || new_layout) {
+ if ((unlink(f->file_name) < 0) && (errno != ENOENT)) {
td_verror(td, errno, "unlink");
return 1;
}