From owner-freebsd-fs@FreeBSD.ORG Thu Feb 24 03:50:08 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4DB3D106564A for ; Thu, 24 Feb 2011 03:50:08 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta12.emeryville.ca.mail.comcast.net (qmta12.emeryville.ca.mail.comcast.net [76.96.27.227]) by mx1.freebsd.org (Postfix) with ESMTP id 236C08FC17 for ; Thu, 24 Feb 2011 03:50:07 +0000 (UTC) Received: from omta01.emeryville.ca.mail.comcast.net ([76.96.30.11]) by qmta12.emeryville.ca.mail.comcast.net with comcast id Bfq51g0080EPchoACfq7lC; Thu, 24 Feb 2011 03:50:07 +0000 Received: from koitsu.dyndns.org ([98.248.33.18]) by omta01.emeryville.ca.mail.comcast.net with comcast id Bfq51g01U0PUQVN8Mfq5gB; Thu, 24 Feb 2011 03:50:06 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 45EAA9B427; Wed, 23 Feb 2011 19:50:05 -0800 (PST) Date: Wed, 23 Feb 2011 19:50:05 -0800 From: Jeremy Chadwick To: Hugo Silva Message-ID: <20110224035005.GA13141@icarus.home.lan> References: <457880.36028.qm@web121501.mail.ne1.yahoo.com> <201102211707.p1LH7c8n075660@lurza.secnetix.de> <20110221174100.GA77744@icarus.home.lan> <4D65582A.7020404@barafranca.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D65582A.7020404@barafranca.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-fs@FreeBSD.ORG, kellydeanch@yahoo.com Subject: Re: Why is procfs deprecated in favor of procstat? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2011 03:50:08 -0000 On Wed, Feb 23, 2011 at 06:55:38PM +0000, Hugo Silva wrote: > >For years now I have been considering a sysctl filesystem (e.g. mounted > >as /sysctl) which would solve this dilemma. Read-only might be a wise > >choice for this too. But this is beyond my skill set at this time, and > >the existing documentation/examples for a pseudo filesystem are really > >not that great. > > > > http://netbsd.gw.com/cgi-bin/man-cgi?mount_sysctlfs++NetBSD-current This is fantastic, except for the fact that it's abstracted by something called puffs. I took a look at the NetBSD source code for this (src/usr.sbin/puffs/mount_sysctlfs, tag netbsd-5) and puffs is absolutely required for it to work. http://netbsd.gw.com/cgi-bin/man-cgi?puffs+4+NetBSD-current http://netbsd.gw.com/cgi-bin/man-cgi?puffs+3+NetBSD-current Simply put, someone would have to port puffs for mount_sysctlfs to work on FreeBSD. There is already efforts underway to do that, but I have absolutely no idea what the status of it is: http://wiki.freebsd.org/SOC2009TatsianaSeveryna -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP 4BD6C0CB |