Blame SOURCES/cdrkit-1.1.11-device-name.patch

a1a51c
diff -up wrk/libusal/scsi-linux-sg.c.wrk wrk/libusal/scsi-linux-sg.c
a1a51c
--- wrk/libusal/scsi-linux-sg.c.wrk	2015-05-31 22:21:03.376694659 +0200
a1a51c
+++ wrk/libusal/scsi-linux-sg.c	2015-05-31 22:22:47.183667927 +0200
a1a51c
@@ -509,7 +509,8 @@ usalo_open(SCSI *usalp, char *device)
a1a51c
 		/* scan and maybe keep one open, sg_setup decides */
a1a51c
 #define HDX 0
a1a51c
 #define SCD 1
a1a51c
-#define SG 2
a1a51c
+#define SCD2 2
a1a51c
+#define SG 3
a1a51c
 		int h;
a1a51c
 /*
a1a51c
 retry_scan_open:
a1a51c
@@ -533,6 +534,15 @@ retry_scan_open:
a1a51c
 						first=0;
a1a51c
 						last=255;
a1a51c
 						break;
a1a51c
+					}
a1a51c
+				case(SCD2):
a1a51c
+					{
a1a51c
+						if(!check_linux_26())
a1a51c
+							continue;
a1a51c
+						pattern="/dev/sr%d";
a1a51c
+						first=0;
a1a51c
+						last=255;
a1a51c
+						break;
a1a51c
 					}
a1a51c
 				case(SG):
a1a51c
 					{