Commit 578f7ff
Use serial instead of SCSI ID for USB devices (#107)
Adding SRs on multiple usb devices may fail because /usr/lib/udev/scsi_id returns the same device id for all the usb devices.
This change fixes this by checking the drive type and using the device serial number if correctly read.
Signed-off-by: Frederic Bor <[email protected]>
Signed-off-by: Ronan Abhamon <[email protected]>1 parent 527db10 commit 578f7ff
1 file changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1016 | 1016 | | |
1017 | 1017 | | |
1018 | 1018 | | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
1019 | 1025 | | |
1020 | 1026 | | |
1021 | 1027 | | |
| |||
1039 | 1045 | | |
1040 | 1046 | | |
1041 | 1047 | | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
1042 | 1056 | | |
1043 | 1057 | | |
1044 | 1058 | | |
| |||
1048 | 1062 | | |
1049 | 1063 | | |
1050 | 1064 | | |
1051 | | - | |
| 1065 | + | |
1052 | 1066 | | |
1053 | 1067 | | |
1054 | 1068 | | |
| |||
0 commit comments