From owner-freebsd-current@FreeBSD.ORG Thu Oct 13 19:13:36 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 B453816A41F for ; Thu, 13 Oct 2005 19:13:36 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E24943D4C for ; Thu, 13 Oct 2005 19:13:36 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 6BE34BC66; Thu, 13 Oct 2005 19:13:33 +0000 (UTC) To: Eric Anderson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 13 Oct 2005 06:36:32 CDT." <434E46C0.7060903@centtech.com> Date: Thu, 13 Oct 2005 21:13:32 +0200 Message-ID: <9165.1129230812@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: FreeBSD Current Subject: Re: ufsstat - testers / feedback wanted! X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 19:13:36 -0000 In message <434E46C0.7060903@centtech.com>, Eric Anderson writes: >[resend to -current for broader test audience] > >I've just finished the first version of ufsstat, a tool to show local >filesystem statistics much like nfsstat does for NFS. I would far to prefer to see a generic method that would work on all filesystems types, rather than a ufs specific tool. If you added counting code to the VOP_FOO() expansions, you should be able to gather statistics for all filesystem types. The collection could be controlled by a mount option if the impact is too big. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.