Prevent filetype disappearing
authorAaron Carroll <aaronc@gelato.unsw.edu.au>
Wed, 25 Jun 2008 07:20:37 +0000 (09:20 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 25 Jun 2008 07:20:37 +0000 (09:20 +0200)
commitbc3456fa06cc7777c4764da8c7b1c0fd0a3c3772
treea9af5a526ec39352957c2a2fc393426ad7e90f6b
parentf3f552b9920cc45c5b1f9c679f36b8ddb13927d0
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>
filesetup.c