From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 20 06:28:47 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 882BDD4 for ; Sun, 20 Oct 2013 06:28:47 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-pa0-x22c.google.com (mail-pa0-x22c.google.com [IPv6:2607:f8b0:400e:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 61AA02838 for ; Sun, 20 Oct 2013 06:28:47 +0000 (UTC) Received: by mail-pa0-f44.google.com with SMTP id fb1so3830881pad.31 for ; Sat, 19 Oct 2013 23:28:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vBWwW41X4OYQu85WRv94cH30Z3Vhe5MkYRmn/Ogutzg=; b=tFp/BwW6i22r6riniWEUrlIIRxw9F9+Oznu0ZOkm3Dg+Y4M88z++RzUaHxHm1ZWKVM eiHTMEUcXHmIUY6LN1QT84AKMmVnra0UWiDKJaoLf6LE6stnbt3+yHVuVNpmtSm/HBD4 6zhHCq4aOr7BY1iSzL25zH+QSBbUCb0OIXVER1nookeZGvzt138Iaouhd9rcwFMhWmdT Q4JaFH10Mt4Uvc9RLtfpxE3dClFlSmGrytnv96fuVdBfWxSiCYLFuot2uTVvfS2Q+CjF 3Y/kdPeoP+La+1unJXZTTIkmoGJUDhVOy0RaVpP1R6+TbRIKAVyD3xvnLZEhEh8LrJW/ ZJLw== MIME-Version: 1.0 X-Received: by 10.66.26.236 with SMTP id o12mr255519pag.136.1382250526307; Sat, 19 Oct 2013 23:28:46 -0700 (PDT) Received: by 10.70.92.79 with HTTP; Sat, 19 Oct 2013 23:28:46 -0700 (PDT) In-Reply-To: <1382218713.206890674@f133.i.mail.ru> References: <1382192148.119437035@f257.i.mail.ru> <5262E2DD.6030703@bluerosetech.com> <1382218713.206890674@f133.i.mail.ru> Date: Sun, 20 Oct 2013 01:28:46 -0500 Message-ID: Subject: Re: determine drive's SAS port From: Adam Vande More To: Alexey Egorov Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Hackers , Darren Pilgrim X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Oct 2013 06:28:47 -0000 On Sat, Oct 19, 2013 at 4:38 PM, Alexey Egorov wrote: > > perhaps you can trace the cables and get a PCB diagram? > I need to do this "on the fly" via some shell script to be able to use it > in devd rules. > On Linux we use /sys/* entries to do this man linsysfs -- however you shouldn't need to do this in the first place. -- Adam