Re: no INQUIRY from userspace please

2008-02-19 Thread Douglas Gilbert
Stefan Richter wrote: James Bottomley wrote: It's all very well to say this, but I think if you look at what udev does, you'll find that it uses scsi_id to send a VPD inquiry to the device so it can populate /dev/disk/by-id, so the point is already conceded PS: Alas we don't have a practicabl

Re: no INQUIRY from userspace please (was Re: [PATCH 7/9] scsi_dh: Add support for SDEV_PASSIVE)

2008-02-07 Thread Luben Tuikov
--- On Thu, 2/7/08, James Bottomley <[EMAIL PROTECTED]> wrote: > This is all a tradeoff. If you want userspace *never* to > issue raw SCSI > commands like INQUIRY, we're going to have to provide > the needed > information from the kernel via sysfs ... including VPD > strings. This > is something

Re: no INQUIRY from userspace please

2008-02-07 Thread Stefan Richter
> James Bottomley wrote: >> It's all very well to say this, but I think if you look at what udev >> does, you'll find that it uses scsi_id to send a VPD inquiry to the >> device so it can populate /dev/disk/by-id, so the point is already >> conceded PS: Alas we don't have a practicable way to kno

Re: no INQUIRY from userspace please

2008-02-07 Thread Stefan Richter
(adding Cc linux-hotplug) James Bottomley wrote: > On Thu, 2008-02-07 at 11:08 +0100, Stefan Richter wrote: >> Mike Anderson wrote: >> > A number of user apps like lvm scanning that execute media access commands >> > already have filter capability to filter devices that one does not want to >> > s

Re: no INQUIRY from userspace please (was Re: [PATCH 7/9] scsi_dh: Add support for SDEV_PASSIVE)

2008-02-07 Thread James Bottomley
On Thu, 2008-02-07 at 11:08 +0100, Stefan Richter wrote: > Mike Anderson wrote: > > A number of user apps like lvm scanning that execute media access commands > > already have filter capability to filter devices that one does not want to > > scan. Another class of device scanners just use inquiries