From: Andreas Dilger Subject: Re: ReiserFS problems Date: Wed, 6 Aug 2003 11:43:31 -0600 Message-ID: <20030806114331.H7752@schatzie.adilger.int> References: <20030806182055.A28562@bitwizard.nl> <20030806164852.GA14719@namesys.com> <20030806191806.A31496@bitwizard.nl> Mime-Version: 1.0 Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com Content-Disposition: inline In-Reply-To: <20030806191806.A31496@bitwizard.nl>; from R.E.Wolff@harddisk-recovery.nl on Wed, Aug 06, 2003 at 07:18:06PM +0200 List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Rogier Wolff Cc: Oleg Drokin , reiserfs-list@namesys.com, copy@harddisk-recovery.nl On Aug 06, 2003 19:18 +0200, Rogier Wolff wrote: > > > later. So we hit control-C on the fsck. > > > > That was big mistake. > > It was only a couple of percent done. All we have to do now is run it > again, and let it continue. From a user-safety point-of-view, you should use "tty()" to see if the program is running interactively, and then trap CTRL-C and have it print a warning in the signal handler that pressing CTRL-C again in the next second will kill it. All you need then is to call "time()" and save it in a static, and if the signal handler is called more than once in the same second only then exit. Cheers, Andreas -- Andreas Dilger http://sourceforge.net/projects/ext2resize/ http://www-mddsp.enel.ucalgary.ca/People/adilger/