From c9fe09654d7c8616f48875081b780d04a2e50475 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 29 Nov 2006 20:51:58 +0000 Subject: [PATCH] Added preliminary support for new cdrecord 1000+ = ATA busses (input only) --- libburn/trunk/cdrskin/cdrskin.c | 9 ++++++--- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin.c b/libburn/trunk/cdrskin/cdrskin.c index 10739b8f..8764803a 100644 --- a/libburn/trunk/cdrskin/cdrskin.c +++ b/libburn/trunk/cdrskin/cdrskin.c @@ -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"); return(-3); } - if((strncmp(adr,"ATA",3)==0 && (adr[3]==0 || adr[3]==':')) || - (strncmp(adr,"ATAPI",5)==0 && (adr[5]==0 || adr[5]==':'))) { - + if(busno>=1000) { + 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) { fprintf(stderr, "cdrskin: FATAL : dev=ATA:Bus,Target,Lun expects Bus {0..12}, Target {0,1}\n"); diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 9053263f..42117957 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2006.11.25.210321" +#define Cdrskin_timestamP "2006.11.29.205136"