From owner-freebsd-arch@FreeBSD.ORG Thu Jul 12 07:02:26 2007 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F2D5D16A421; Thu, 12 Jul 2007 07:02:25 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id A1E9813C44B; Thu, 12 Jul 2007 07:02:25 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5559D.dip.t-dialin.net [84.165.85.157]) by redbull.bpaserver.net (Postfix) with ESMTP id 8BB582E22D; Thu, 12 Jul 2007 09:02:20 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 2295B5B5A49; Thu, 12 Jul 2007 09:00:09 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l6C708uS075844; Thu, 12 Jul 2007 09:00:08 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Thu, 12 Jul 2007 09:00:08 +0200 Message-ID: <20070712090008.yc6d6zptwkow04oc@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Thu, 12 Jul 2007 09:00:08 +0200 From: Alexander Leidinger To: John Baldwin References: <55754.1184143579@critter.freebsd.dk> <20070711104247.P58526@fledge.watson.org> <20070711134959.2q3akd4zk0o8404c@webmail.leidinger.net> <200707111145.27741.jhb@freebsd.org> In-Reply-To: <200707111145.27741.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-12.904, required 8, BAYES_00 -15.00, DKIM_POLICY_SIGNSOME 0.00, J_CHICKENPOX_27 0.60, MIME_QP_LONG_LINE 1.40, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: Rui Paulo , Shteryana, Poul-Henning Kamp , "Constantine A. Murenin" , Shopova , Robert Watson , freebsd-arch@freebsd.org Subject: Re: Porting OpenBSD's sysctl hw.sensors framework to FreeBSD X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2007 07:02:26 -0000 Quoting John Baldwin (from Wed, 11 Jul 2007 11:45:26 -0400= ): > On Wednesday 11 July 2007 07:49:59 am Alexander Leidinger wrote: >> On the other hand you don't want to allow an userland tool to directly >> mess around with the registers on your RAID or NIC to get some status... > > Err, that's how all the RAID utilities I've used work. They send firmware > commands from userland and parse the replies in userland. One exception I= 've That's sad... they should provide this functionality in the driver =20 instead, it would allow to use access restrictions for some parts. > seen so far is that for software RAID the firmware you are talking to is t= he > driver, not firmware on the card, so you use ioctls directly rather than a= n > ioctl that sends a command to the firmware on the card. But you have to run this tool as root, don't you? You don't want to =20 let a user run such a tool (and nowadays even desktops start to have =20 RAID, so whoever sits at the machine may be interested to see some =20 status on his desktop). Bye, Alexander. --=20 CCI Power 6/40: one board, a megabyte of cache, and an attitude... http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137