Removed a bug with SCSI address of scanned drives without such address
This commit is contained in:
parent
c9a3fd3140
commit
81ceaf0cdd
@ -2757,9 +2757,12 @@ int Cdrskin_driveno_to_btldev(struct CdrskiN *skin, int driveno,
|
|||||||
{ret= 2; goto adr_translation;}
|
{ret= 2; goto adr_translation;}
|
||||||
}
|
}
|
||||||
fallback:;
|
fallback:;
|
||||||
if(skin->preskin->no_pseudo_scsi_adr)
|
if(skin->preskin->no_pseudo_scsi_adr) {
|
||||||
sprintf(btldev,"%d",driveno);
|
if(loc!=NULL)
|
||||||
|
strcpy(btldev,loc);
|
||||||
else
|
else
|
||||||
|
sprintf(btldev,"%d",driveno);
|
||||||
|
} else
|
||||||
sprintf(btldev,"0,%d,0",driveno);
|
sprintf(btldev,"0,%d,0",driveno);
|
||||||
ret= 0;
|
ret= 0;
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2006.09.23.114858"
|
#define Cdrskin_timestamP "2006.09.23.132755"
|
||||||
|
@ -766,6 +766,9 @@ int burn_drive_obtain_scsi_adr(char *path, int *host_no, int *channel_no,
|
|||||||
*channel_no = drive_array[i].channel;
|
*channel_no = drive_array[i].channel;
|
||||||
*target_no = drive_array[i].id;
|
*target_no = drive_array[i].id;
|
||||||
*lun_no = drive_array[i].lun;
|
*lun_no = drive_array[i].lun;
|
||||||
|
if (*host_no < 0 || *channel_no < 0 ||
|
||||||
|
*target_no < 0 || *lun_no < 0)
|
||||||
|
return 0;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user