Re: fio --showcmd fails if directory= does not exist

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

 



On 09/06/2013 06:38 AM, David Sterba wrote:
> Hi,
> 
> I'm using "fio --showcmd file.job" to convert a script to plain
> commandline arguments and this fails if the directory specified in job
> file does not exist. While this has to be an error if the job is being
> executed, it should not be in context of --showcmd.
> 
> To reproduce:
> $ cat job.fio
> [global]
> directory=/x
> 
> $ fio --showcmd job.fio
> fio: /x is not a directory
> fio: failed parsing directory=/x
> fio: job global dropped
> 
> Expected output:
> fio --directory=/x

That's definitely a bug, the callbacks should not verify anything if we
are only in dump or parse only mode. I've committed a fix.

-- 
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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