Subject: Re: RFC: progressbars for fsck_ffs
To: David Laight <david@l8s.co.uk>
From: Chris Gilbert <chris@netbsd.org>
List: tech-userlevel
Date: 11/17/2002 23:55:42
On Sun, 17 Nov 2002 23:26:37 +0000
David Laight <david@l8s.co.uk> wrote:
> > but I like the idea I know something was happening rather
> > than nothing being displayed for extended periods.
>
> If the fsck is being done during system boot, it would actually
> be useful just to output a line indicating that the fsck is in
> progress - not just one when it has finished.
> At least you'd know why there was a pregnant pause.
Can you clarify what you mean? at boot I now get (taken from serial console,
so aplogies if this wraps badly):
Starting file system checks:
/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%
/dev/rwd1e: phase 2 |*****************************************************| 100%
/dev/rwd1e: phase 3 |*****************************************************| 100%
/dev/rwd1e: phase 4 |*****************************************************| 100%
/dev/rwd1e: phase 5 |*****************************************************| 100%
/dev/rwd1e: 30497 files, 539803 used, 3526155 free (4243 frags, 440239 blocks, 0
.1% fragmentation)
/dev/rwd1e: MARKING FILE SYSTEM CLEAN
/dev/rwd1f: phase 1 |*****************************************************| 100%
/dev/rwd1f: phase 2 |*****************************************************| 100%
/dev/rwd1f: phase 3 |*****************************************************| 100%
/dev/rwd1f: phase 4 |*****************************************************| 100%
/dev/rwd1f: phase 5 |*****************************************************| 100%
/dev/rwd1f: 84544 files, 3242210 used, 30142841 free (6049 frags, 3767099 blocks
, 0.0% fragmentation)
/dev/rwd1f: MARKING FILE SYSTEM CLEAN
Setting tty flags.
The stars obviously filling up as it goes.
Cheers,
Chris