Confusion between mutex and semaphore naming
[fio.git] / filesetup.c
index 785afcee48eef27f45d67c33ae38454f58ca47b8..d10840a2374cad5d5cf8add743672756026c6d87 100644 (file)
@@ -34,7 +34,7 @@ static int extend_file(struct thread_data *td, struct fio_file *f)
                unlink_file = 1;
 
        if (unlink_file || new_layout) {
-               if (unlink(f->file_name) < 0) {
+               if ((unlink(f->file_name) < 0) && (errno != ENOENT)) {
                        td_verror(td, errno, "unlink");
                        return 1;
                }