RE: linux /dev and normal files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



...
> >>>>> I'd much rather keep fio ignorant of any "special" directories, even if
> >>>>> it means that sometimes you do potentially run into issues like the
> >>>>> above, where you specify a block device that does not exist.
> >>>>
> >>>> How about an option in the script:
> >>>> direct=2   file must exist and be a block device, otherwise skip it
> >>>
> >>> Might be a bit nasty to overload direct= like that. But I'd be open to
> >>> adding an option that says must_be_bdev or something, which can be a
> >>> bool as well.
> >>
> >> So for your case, you'd set
> >> filetype=bdev
> >
> > How about a create parameter which defaults to create=1 giving the
> > current behaviour and create=0 where the job fails if the file doesn't
> > already exist? It won't catch as much but should be portable.
> 
> Agree, that will be both easier to maintain and probably just as useful
> as the more expanded options. Lets call it 'allow_file_create'.
> 

Thanks, I'll create a patch to add that.

��.n��������+%������w��{.n�������^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�


[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux