Kept /dev/hdX from all having SCSI address 0,0,0

This commit is contained in:
Thomas Schmitt 2006-09-27 13:41:19 +00:00
parent 7692d08748
commit eaac38564e
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2006.09.27.120656"
#define Cdrskin_timestamP "2006.09.27.134332"

View File

@ -835,6 +835,10 @@ int sg_obtain_scsi_adr(char *path, int *host_no, int *channel_no,
};
struct my_scsi_idlun idlun;
if (strncmp(path, "/dev/hd", 7) == 0
&& path[7] >= 'a' && path[7] <= 'z' && path[8] == 0)
return 0; /* on RIP 14 all hdx return SCSI adr 0,0,0,0 */
fd = open(path, O_RDONLY | O_NONBLOCK);
if(fd < 0)
return 0;