From 6869e12e4d42d71a90d2d69ba3bc4302811fde1a 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) --- cdrskin/cdrskin.c | 9 ++++++--- cdrskin/cdrskin_timestamp.h | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/cdrskin/cdrskin.c b/cdrskin/cdrskin.c index 10739b8..8764803 100644 --- a/cdrskin/cdrskin.c +++ b/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/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 9053263..4211795 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2006.11.25.210321" +#define Cdrskin_timestamP "2006.11.29.205136"