Mapping SCSI driver to USB one.

arrowdodger 6yearold at gmail.com
Wed Dec 3 11:58:25 UTC 2014


On Tue, Dec 2, 2014 at 11:54 PM, Hans Petter Selasky <hps at selasky.org>
wrote:

> On 12/02/14 21:39, arrowdodger wrote:
>
>> Hello.
>> I'm playing around with sysutils/hal sources and can't find a way to
>> obtain
>> a SCSI driver to the corresponding USB device. In other words, knowing
>> "umass0" i want to get "da0" for it.
>>
>>> From what i can tell, HAL uses CAM API's (/dev/xpt0 stuff), but working
>>>
>> with it requires elevated privileges. Probably, because of that
>> hald-runner
>> is running under root.
>> Is there any way to perform such mapping as regular user?
>>
>
> Hi,
>
> Maybe "devinfo" will give you the answer.
>
> --HPS
>
>
Nope, unfortunately devinfo gives

       ehci0
          usbus1
            uhub1
              umass0

for my flash drive.


More information about the freebsd-hackers mailing list