* udev 124, scsi_id on generics not working.
@ 2008-07-07 0:25 John Huttley
0 siblings, 0 replies; 3+ messages in thread
From: John Huttley @ 2008-07-07 0:25 UTC (permalink / raw)
To: linux-hotplug
Hi
scsi_id doesn't seem to like sg's any more.
scsi_id is working, as shown..
scsi_id --whitelisted --export --page=0x80 --device=/dev/sda
ID_VENDOR=ATA
ID_MODEL=WDC_WD1600BB-22G
ID_REVISION\b.0
ID_SERIAL=SATA_WDC_WD1600BB-22_WD-WCAL98082576
ID_SERIAL_SHORT=WD-WCAL98082576
ID_TYPE=disk
but try that on a generic..
gatekeeper / # scsi_id --whitelisted --export --page=0x80 --device=/dev/sg1
gatekeeper / # scsi_id --whitelisted --export --page=0x80 --device=/dev/sg2
gatekeeper / # scsi_id --whitelisted --export --page=0x80 --device=/dev/sg3
nothing.
sg1 is my autochanger, which is unfortunate, as it makes this rule not work:
# type 8 devices are "Medium Changers"
KERNEL="sg[0-9]*", SUBSYSTEMS="scsi", ATTRS{type}="8",
IMPORT{program}="scsi_id --export --whitelisted -d $tempnode",
SYMLINK+="tape/by-id/scsi-$env{ID_SERIAL}"
I know something has changed wrt to generics, perhaps the rule needs to
be updated, and the docs as well.
Regards,
john
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: udev 124, scsi_id on generics not working.
@ 2008-07-07 9:31 Kay Sievers
2008-07-07 9:41 ` John Huttley
0 siblings, 1 reply; 3+ messages in thread
From: Kay Sievers @ 2008-07-07 9:31 UTC (permalink / raw)
To: linux-hotplug
On Mon, Jul 7, 2008 at 02:25, John Huttley <John@mib-infotech.co.nz> wrote:
> scsi_id doesn't seem to like sg's any more.
>
> scsi_id is working, as shown..
>
> scsi_id --whitelisted --export --page=0x80 --device=/dev/sda
> ID_VENDOR=ATA
> ID_MODEL=WDC_WD1600BB-22G
> ID_REVISION\b.0
> ID_SERIAL=SATA_WDC_WD1600BB-22_WD-WCAL98082576
> ID_SERIAL_SHORT=WD-WCAL98082576
> ID_TYPE=disk
>
> but try that on a generic..
>
> gatekeeper / # scsi_id --whitelisted --export --page=0x80 --device=/dev/sg1
> gatekeeper / # scsi_id --whitelisted --export --page=0x80 --device=/dev/sg2
> gatekeeper / # scsi_id --whitelisted --export --page=0x80 --device=/dev/sg3
>
>
> nothing.
Yep, that's a bug. The fallback to sgv3 is broken for sg devices, they
return ENOSYS, instead of EINVAL like sd is doing. I pushed a fix out.
In the meantime, adding:
--sg-version=3
should work.
Thanks for letting us know,
Kay
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: udev 124, scsi_id on generics not working.
2008-07-07 9:31 Kay Sievers
@ 2008-07-07 9:41 ` John Huttley
0 siblings, 0 replies; 3+ messages in thread
From: John Huttley @ 2008-07-07 9:41 UTC (permalink / raw)
To: linux-hotplug
That seems to have fixed it, thanks!
--john
Kay Sievers wrote:
> On Mon, Jul 7, 2008 at 02:25, John Huttley <John@mib-infotech.co.nz> wrote:
>> scsi_id doesn't seem to like sg's any more.
>>
>> scsi_id is working, as shown..
>>
>> scsi_id --whitelisted --export --page=0x80 --device=/dev/sda
>> ID_VENDOR=ATA
>> ID_MODEL=WDC_WD1600BB-22G
>> ID_REVISION\b.0
>> ID_SERIAL=SATA_WDC_WD1600BB-22_WD-WCAL98082576
>> ID_SERIAL_SHORT=WD-WCAL98082576
>> ID_TYPE=disk
>>
>> but try that on a generic..
>>
>> gatekeeper / # scsi_id --whitelisted --export --page=0x80 --device=/dev/sg1
>> gatekeeper / # scsi_id --whitelisted --export --page=0x80 --device=/dev/sg2
>> gatekeeper / # scsi_id --whitelisted --export --page=0x80 --device=/dev/sg3
>>
>>
>> nothing.
>
> Yep, that's a bug. The fallback to sgv3 is broken for sg devices, they
> return ENOSYS, instead of EINVAL like sd is doing. I pushed a fix out.
>
> In the meantime, adding:
> --sg-version=3
> should work.
>
> Thanks for letting us know,
> Kay
> --
> To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-07-07 9:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-07 0:25 udev 124, scsi_id on generics not working John Huttley
-- strict thread matches above, loose matches on Subject: below --
2008-07-07 9:31 Kay Sievers
2008-07-07 9:41 ` John Huttley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).