Revision f1bd51ac blockdev.c
b/blockdev.c | ||
---|---|---|
136 | 136 |
return NULL; |
137 | 137 |
} |
138 | 138 |
|
139 |
DriveInfo *drive_get_by_index(BlockInterfaceType type, int index) |
|
140 |
{ |
|
141 |
return drive_get(type, |
|
142 |
drive_index_to_bus_id(type, index), |
|
143 |
drive_index_to_unit_id(type, index)); |
|
144 |
} |
|
145 |
|
|
139 | 146 |
int drive_get_max_bus(BlockInterfaceType type) |
140 | 147 |
{ |
141 | 148 |
int max_bus; |
Also available in: Unified diff