Commit 4da07df
committed
nvme/050: add support for NVMe multipath devices
Add two helper functions to tests/nvme/rc:
- _nvme_dev_support_native_multipath(): Check if the test device is an
NVMe native multipath device by examining the sysfs device path.
- _nvme_get_pci_from_dev_sysfs(): Get the PCI address for an NVMe
device, handling multipath devices by reading from the multipath
subdirectory.
Update nvme/050 to handle multipath devices correctly. When testing
I/O timeout on a multipath device, fio will not encounter I/O errors
because the multipath layer provides failover to alternate paths.
Adjust the test pass/fail logic accordingly:
- For multipath devices: pass if no I/O error (expected behavior)
- For non-multipath devices: pass if I/O error occurs (original behavior)
Signed-off-by: Yi Zhang <[email protected]>1 parent e387a7e commit 4da07df
2 files changed
Lines changed: 26 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
| 23 | + | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
29 | | - | |
| 27 | + | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
| |||
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
43 | | - | |
44 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | | - | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
90 | 107 | | |
91 | 108 | | |
92 | 109 | | |
| |||
0 commit comments