X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=filesetup.c;h=785afcee48eef27f45d67c33ae38454f58ca47b8;hp=76b45a9c76af6762d73521355b031bdc38046c9c;hb=6ae1f57f2cb8661b97b770372eeb3694f6d5a744;hpb=8ce9cd3dfab6a802272378e02695e87ebe40a973 diff --git a/filesetup.c b/filesetup.c index 76b45a9c..785afcee 100644 --- a/filesetup.c +++ b/filesetup.c @@ -33,7 +33,7 @@ static int extend_file(struct thread_data *td, struct fio_file *f) if (td_write(td) && !td->o.overwrite) unlink_file = 1; - if ((unlink_file || new_layout) && (f->flags & FIO_FILE_EXISTS)) { + if (unlink_file || new_layout) { if (unlink(f->file_name) < 0) { td_verror(td, errno, "unlink"); return 1;