fio
fio copied to clipboard
Add support for Windows UNC paths
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
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.
Thanks! I will try it . hope it is the answer
It is work well! Thanks you
I'll leave this one open as it's a genuine issue if you can't set up a mapping.
(@mirim-123 but I'm glad you were able to workaround your particular issue!)