X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=filesetup.c;h=a48faf588140ca79f7f00a8a95f63266a63f7a39;hp=d208a69e3d283abb8c65003d82978c5437524979;hb=d5b78f5a8fd73d21c1b84d71993c5690dbe098b5;hpb=565e784df05c2529479eed8a38701a33b01894bd diff --git a/filesetup.c b/filesetup.c index d208a69e..a48faf58 100644 --- a/filesetup.c +++ b/filesetup.c @@ -1225,10 +1225,12 @@ static void get_file_type(struct fio_file *f) else f->filetype = FIO_TYPE_FILE; +#ifdef WIN32 /* \\.\ is the device namespace in Windows, where every file is * a block device */ if (strncmp(f->file_name, "\\\\.\\", 4) == 0) f->filetype = FIO_TYPE_BD; +#endif if (!stat(f->file_name, &sb)) { if (S_ISBLK(sb.st_mode))