fio icon indicating copy to clipboard operation
fio copied to clipboard

Add support for Windows UNC paths

Open mirim-123 opened this issue 4 years ago • 5 comments
trafficstars

I need run fio on smb share in windows File path is \10.10.x.x\Test1

I try run fio with following command: "C:\Program Files\fio\fio.exe" --name=warmup --readwrite=write --bs=4k --ba=64k --filename=\\10.10.x.x\Test1 --size=1GB --ioengine=windowsaio --runtime=10000 --time_based --iodepth=128 --numjobs=1 --output=c:\output2.txt

And get result: fio: failed to create dir (\\): No such file or directory

Is there any way to do it right?

Thanks

mirim-123 avatar Nov 23 '20 07:11 mirim-123

I think the "quick" workaround for you for now would be to map the share as a drive and then access it through a drive letter.

I can well believe that UNC paths need work (I think https://github.com/axboe/fio/blob/9107a641e67f27003fa6cbe7b55b1ec6a0239197/os/os-windows.h#L205 would need some love). I'm not able to work on this but I'd be happy to review patches so I'll label this up.

sitsofe avatar Nov 23 '20 13:11 sitsofe

Thanks! I will try it . hope it is the answer

mirim-123 avatar Nov 23 '20 16:11 mirim-123

It is work well! Thanks you

mirim-123 avatar Nov 23 '20 17:11 mirim-123

I'll leave this one open as it's a genuine issue if you can't set up a mapping.

sitsofe avatar Nov 23 '20 17:11 sitsofe

(@mirim-123 but I'm glad you were able to workaround your particular issue!)

sitsofe avatar Nov 23 '20 17:11 sitsofe