Added preliminary support for new cdrecord 1000+ = ATA busses (input only)

This commit is contained in:
Thomas Schmitt 2006-11-29 20:51:58 +00:00
parent 93aafdf1d0
commit c9fe09654d
2 changed files with 7 additions and 4 deletions

View File

@ -1694,9 +1694,12 @@ int Cdrpreskin__cdrecord_to_dev(char *adr, char device_adr[Cdrskin_adrleN],
"cdrskin: FATAL : dev=[Prefix:]Bus,Target,Lun expects Bus number >= 0\n"); "cdrskin: FATAL : dev=[Prefix:]Bus,Target,Lun expects Bus number >= 0\n");
return(-3); return(-3);
} }
if((strncmp(adr,"ATA",3)==0 && (adr[3]==0 || adr[3]==':')) || if(busno>=1000) {
(strncmp(adr,"ATAPI",5)==0 && (adr[5]==0 || adr[5]==':'))) { busno-= 1000;
goto ata_bus;
} else if((strncmp(adr,"ATA",3)==0 && (adr[3]==0 || adr[3]==':')) ||
(strncmp(adr,"ATAPI",5)==0 && (adr[5]==0 || adr[5]==':'))) {
ata_bus:;
if(busno>12 || (*driveno)<0 || (*driveno)>1) { if(busno>12 || (*driveno)<0 || (*driveno)>1) {
fprintf(stderr, fprintf(stderr,
"cdrskin: FATAL : dev=ATA:Bus,Target,Lun expects Bus {0..12}, Target {0,1}\n"); "cdrskin: FATAL : dev=ATA:Bus,Target,Lun expects Bus {0..12}, Target {0,1}\n");

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2006.11.25.210321" #define Cdrskin_timestamP "2006.11.29.205136"