From owner-freebsd-current Mon Oct 28 13:27:54 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3443337B401 for ; Mon, 28 Oct 2002 13:27:53 -0800 (PST) Received: from mail.speakeasy.net (mail17.speakeasy.net [216.254.0.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC13F43E6E for ; Mon, 28 Oct 2002 13:27:52 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 31866 invoked from network); 28 Oct 2002 21:27:59 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail17.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 28 Oct 2002 21:27:59 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id g9SLRon5088632; Mon, 28 Oct 2002 16:27:50 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3DBDA4FB.E594450C@mindspring.com> Date: Mon, 28 Oct 2002 16:27:49 -0500 (EST) From: John Baldwin To: Terry Lambert Subject: Re: libgtop port and v_tag changes Cc: Nate Lawson , current@FreeBSD.org, Joe Marcus Clarke Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 28-Oct-2002 Terry Lambert wrote: > John Baldwin wrote: >> I mean, do you know what libgtop is used for? It's used to draw >> little applets that display load averages and other silly system >> monitor stuff in small spaces in GUI's. It seems to work quite >> happily w/o any inode numbers or dev_t's for non-UFS filesystems. >> I just don't see why some little graphical applet displaying a load >> average or disk usage or ethernet device usage needs the inode >> number and dev_t of vnode's in the kernel. I mean, geez. > > To build little applets that activate a flashing red light when > certain files are written? Why do you need the inode number to do that. Just kqueue on the file itself using a regular fd, and in that case you can stat(2) the file if you really need the i-node number. You don't need to use libkvm to actually go read the kernel to find this info! -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message