commit | ecc314ba7c5f02b7e90ac1dfbce1a74cd4e6d6fe | [log] [tgz] |
---|---|---|
author | Bruce Cran <bruce@cran.org.uk> | Tue Jan 04 10:59:30 2011 +0100 |
committer | Jens Axboe <jaxboe@fusionio.com> | Tue Jan 04 10:59:30 2011 +0100 |
tree | 6ffdc338398b8426022d7e32a185db4ffb41d58f | |
parent | 03e20d687566753b90383571e5e152c5142bdffd [diff] [blame] |
FIO Windows update Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
diff --git a/init.c b/init.c index bdbb377..0a3529d 100644 --- a/init.c +++ b/init.c
@@ -431,7 +431,9 @@ if (lstat(filename, &sb) == -1) return 0; - if (S_ISREG(sb.st_mode)) + /* \\.\ is the device namespace in Windows, where every file + * is a device node */ + if (S_ISREG(sb.st_mode) && strncmp(filename, "\\\\.\\", 4) != 0) return 0; return 1;