Flexible I/O Tester development
 help / color / mirror / Atom feed
* linux /dev and normal files
@ 2014-09-30 23:49 Elliott, Robert (Server Storage)
  2014-10-01  1:02 ` Jens Axboe
  0 siblings, 1 reply; 19+ messages in thread
From: Elliott, Robert (Server Storage) @ 2014-09-30 23:49 UTC (permalink / raw)
  To: Jens Axboe, fio@vger.kernel.org; +Cc: Sitsofe Wheeler, Jon Tango


> -----Original Message-----
> From: fio-owner@vger.kernel.org [mailto:fio-owner@vger.kernel.org] On Behalf
> Of Sitsofe Wheeler
...
> filename=\\.\physicaldrive1
> ioengine=windowsaio
> direct=1
...
> size=86%
> bs=4k
...

I noticed that, in linux, if you select 
	filename=/dev/sd<not there>
	size=<something> 

(e.g., if you run fio after a device has failed), it  creates a 
normal file of the specified size (which could be quite large 
if using a script such as above).

If you use direct=1, the file is created, followed by this error:
fio: pid=8914, err=22/file:filesetup.c:611, func=open(/dev/sdad), error=Invalid argument
fio: looks like your file system does not support direct=1/buffered=0
fio: looks like your file system does not support direct=1/buffered=0
fio: destination does not support O_DIRECT

If you don't use size=, no file is created and this error
occurs:
fio: pid=0, err=22/file:filesetup.c:820, func=total_file_size, error=Invalid argument
drive_ag: you need to specify size=

If you recreate the device, udevd blows away any such file with
the block device node file, so it's not a good place to put
normal files, even if that is intentional.

In Windows, all "\\.\" paths are assumed to mean block devices,
so fio doesn't inadvertently try to create a normal file in
such a location.

Should fio treat "/dev" paths in linux the same way?

---
Rob Elliott    HP Server Storage




^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-05-12 17:56 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-30 23:49 linux /dev and normal files Elliott, Robert (Server Storage)
2014-10-01  1:02 ` Jens Axboe
2014-10-01  1:12   ` Elliott, Robert (Server Storage)
2014-10-01  1:17     ` Jens Axboe
2014-10-01  3:43       ` Jens Axboe
2014-10-01  7:36         ` Sitsofe Wheeler
2014-10-01 14:20           ` Jens Axboe
2014-10-01 14:31             ` Elliott, Robert (Server Storage)
2014-10-01 23:52         ` Elliott, Robert (Server Storage)
2014-10-02  0:58           ` Jens Axboe
2014-10-02  1:03             ` Jens Axboe
2014-10-02 18:21               ` Elliott, Robert (Server Storage)
2014-10-02 18:32                 ` Jens Axboe
2014-10-02 18:41                   ` Jens Axboe
2015-04-03 18:13                   ` Elliott, Robert (Server Storage)
2015-04-03 18:24                     ` Jens Axboe
2015-05-12 15:32                       ` Jens Axboe
2015-05-12 16:34                         ` Elliott, Robert (Server Storage)
2015-05-12 17:56                           ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox