Subject: Re: RFC: progressbars for fsck_ffs
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Chris Gilbert <chris@netbsd.org>
List: tech-userlevel
Date: 11/18/2002 00:06:24
On Sun, 17 Nov 2002 15:59:08 -0800
Jason R Thorpe <thorpej@wasabisystems.com> wrote:

> On Sun, Nov 17, 2002 at 11:55:42PM +0000, Chris Gilbert wrote:
> 
>  > /dev/rwd1a: phase 1
>  > |*****************************************************| 100%
>  > /dev/rwd1a: phase 2
>  > |*****************************************************| 100%
>  > /dev/rwd1a: phase 3
>  > |*****************************************************| 100%
>  > /dev/rwd1a: phase 4
>  > |*****************************************************| 100%
>  > /dev/rwd1a: phase 5
>  > |*****************************************************| 100%
>  > /dev/rwd1a: 3426 files, 171439 used, 336984 free (368 frags, 42077
>  > blocks, 0.1% fragmentation)
>  > /dev/rwd1a: MARKING FILE SYSTEM CLEAN
>  > /dev/rwd0a: file system is clean; not checking
>  > /dev/rwd0e: file system is clean; not checking
>  > /dev/rwd1e: phase 1
>  > |*****************************************************| 100%
> 
> ...so, what happens if wd1a and wd1e are fsck'ing in parallel?

(I assume you mean wd0e and wd1e, you can't parallel fsck on the same
disk 8)

I think they'll fight over the progress line (and keep overwriting it)
however on reaching 100% that line will scroll up, each progress bar
line ends with a \r except the last 100% which ends in \n.

However I've not been able to test it for sure, as my cats box can't
cope with fscking 2 disks at the same time due to hardware issues.

Chris