Prevent filetype disappearing

fio_file->filetype is set in add_file(), but for duplicated files
fio-file->file_name is already set so add_file() is not called.
This patch copies the filetype at the same time as file_name so
it remains valid for dup'd files.

Signed-off-by: Aaron Carroll <aaronc@gelato.unsw.edu.au>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/filesetup.c b/filesetup.c
index 96d1b54..8b04560 100644
--- a/filesetup.c
+++ b/filesetup.c
@@ -906,8 +906,10 @@
 
 		__f = smalloc(sizeof(*__f));
 
-		if (f->file_name)
+		if (f->file_name) {
 			__f->file_name = smalloc_strdup(f->file_name);
+			__f->filetype = f->filetype;
+		}
 
 		td->files[i] = __f;
 	}