From owner-freebsd-fs Mon Dec 4 14:15:37 2000 From owner-freebsd-fs@FreeBSD.ORG Mon Dec 4 14:15:35 2000 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 63C4F37B400 for ; Mon, 4 Dec 2000 14:15:35 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id eB4MFSZ18699; Mon, 4 Dec 2000 14:15:28 -0800 (PST) Date: Mon, 4 Dec 2000 14:15:28 -0800 From: Alfred Perlstein To: Ian Dowse Cc: freebsd-fs@FreeBSD.ORG, Kirk McKusick Subject: Re: SIGINFO handler for fsck(8) Message-ID: <20001204141528.Z8051@fw.wintelcom.net> References: <200012042119.aa25259@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200012042119.aa25259@salmon.maths.tcd.ie>; from iedowse@maths.tcd.ie on Mon, Dec 04, 2000 at 09:19:19PM +0000 Sender: bright@fw.wintelcom.net Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * Ian Dowse [001204 13:19] wrote: > > I've had this patch lying around here for a while - it adds a simple > SIGINFO handler to fsck(8) so you can tell what it's doing by > pressing Ctrl-T. The output will be something like: > > ^T > load: 0.14 cmd: fsck_ufs 10473 [physstr] 2.12u 0.30s 8% 2016k > /dev/da0s1f: phase 1: cyl group 26 of 60 (43%) > ^T > load: 0.12 cmd: fsck_ufs 10473 [physstr] 4.00u 0.49s 11% 2804k > /dev/da0s1f: phase 2: dir 488 of 27965 (1%) > > Is this a feature we want in fsck? It doesn't really help except > to give you something to do while waiting for a huge filesystem to > be checked :-) I guess it also allows you to see if fsck is actually > getting anywhere. I really like this, it would be nice to have an option for fsck to display the progress without the signals though, the only difficulty would be when it's doing parrallel fscks of several filesystems, but you could have the children talk to the parent who would then format the data for output. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message