Kept /dev/hdX from all having SCSI address 0,0,0
This commit is contained in:
parent
7692d08748
commit
eaac38564e
@ -1 +1 @@
|
||||
#define Cdrskin_timestamP "2006.09.27.120656"
|
||||
#define Cdrskin_timestamP "2006.09.27.134332"
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user