Commit d7cd0b1
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 <frederic.bor@wanadoo.fr>1 parent 993a02f commit d7cd0b1
1 file changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1039 | 1039 | | |
1040 | 1040 | | |
1041 | 1041 | | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
1042 | 1048 | | |
1043 | 1049 | | |
1044 | 1050 | | |
| |||
1062 | 1068 | | |
1063 | 1069 | | |
1064 | 1070 | | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
1065 | 1079 | | |
1066 | 1080 | | |
1067 | 1081 | | |
| |||
1071 | 1085 | | |
1072 | 1086 | | |
1073 | 1087 | | |
1074 | | - | |
| 1088 | + | |
1075 | 1089 | | |
1076 | 1090 | | |
1077 | 1091 | | |
| |||
0 commit comments