From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 3 11:58:25 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 619A6234 for ; Wed, 3 Dec 2014 11:58:25 +0000 (UTC) Received: from mail-ie0-x22f.google.com (mail-ie0-x22f.google.com [IPv6:2607:f8b0:4001:c03::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 21514A9E for ; Wed, 3 Dec 2014 11:58:25 +0000 (UTC) Received: by mail-ie0-f175.google.com with SMTP id x19so8504026ier.20 for ; Wed, 03 Dec 2014 03:58:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=wgsSys0Wgf6uDE2aFHiTnRET34un0uqQnezfN5BhYpQ=; b=wSD/Uc1cxhNidnM0/fZmFIq3DMiwh91SVslX/bgPHa0S9RNpgrZooOj1oBNSBq2yz/ UKnCpC6vVEV24V2a/u0Ki7EsqdAZ/3PrZt3VpuhYP8l07x1uypjUgfcSMD1MDTsuMzZt EbmqzR8RuxCjIVFBxgeV3EpSJwA5hakPc+YmHnKkyvmleS3EMtrzHcKISfBn8HwlC2r6 JBTxiVdglJLNmjbvUecIZBVhV8o6obFsWDgodCrLjVS5NV8ox4kUx1+tvdUDPIs2Ynv8 LBOdfxbkDcCVaZwUzX5K8uiIxS3ZvKeiNYr8EmaCV6RlNyFfxMyPISQOadWcT1K5681e C59w== X-Received: by 10.50.3.8 with SMTP id 8mr57143938igy.45.1417607904517; Wed, 03 Dec 2014 03:58:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.164.214 with HTTP; Wed, 3 Dec 2014 03:57:54 -0800 (PST) In-Reply-To: <547E271A.6070005@selasky.org> References: <547E271A.6070005@selasky.org> From: arrowdodger <6yearold@gmail.com> Date: Wed, 3 Dec 2014 15:57:54 +0400 Message-ID: Subject: Re: Mapping SCSI driver to USB one. To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2014 11:58:25 -0000 On Tue, Dec 2, 2014 at 11:54 PM, Hans Petter Selasky 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.