diskutil: try additional slave device path if first fails
authorPotnuri Bharat Teja <bharat@chelsio.com>
Fri, 2 Mar 2018 15:26:01 +0000 (15:26 +0000)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Fri, 2 Mar 2018 18:00:17 +0000 (18:00 +0000)
commit75d5519d53604946298967e963c6f849a3a7ad6c
tree2b177a71b11bcd54d1644cb1c006d4df0e0b167e
parent892930839558edf72052e0471714f227c1391132
diskutil: try additional slave device path if first fails

Running fio on an NVMEoF device with multipath slaves fails with a "No
such file or directory" error when displaying disk stats. Correct this
by using a different path to the sysfs slave device.

[sitsofe: change new path to be a fallback when regular path fails]

Fixes: https://github.com/axboe/fio/issues/525
Closes: https://github.com/axboe/fio/pull/526

Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
diskutil.c