From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans Reiser Subject: Re: ReiserFS problems Date: Thu, 07 Aug 2003 17:27:27 +0400 Message-ID: <3F3253BF.8090808@namesys.com> References: <20030806182055.A28562@bitwizard.nl> <20030806164852.GA14719@namesys.com> <20030806191806.A31496@bitwizard.nl> <20030806114331.H7752@schatzie.adilger.int> <20030806195215.B32577@bitwizard.nl> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com In-Reply-To: <20030806195215.B32577@bitwizard.nl> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Rogier Wolff Cc: Oleg Drokin , reiserfs-list@namesys.com, copy@harddisk-recovery.nl Rogier Wolff wrote: >On Wed, Aug 06, 2003 at 11:43:31AM -0600, Andreas Dilger wrote: > > >>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. >> >> > >No. The warning should not be that pressing control-C again will kill >the program, but that interrupting a rebuild-tree will make your >filesystem unmountable, and that pressing control-C again will >interrupt the running rebuild-tree. > > Roger. > > > roger is right. -- Hans