diff options
author | Ian Dowse <iedowse@FreeBSD.org> | 2000-12-15 14:23:55 +0000 |
---|---|---|
committer | Ian Dowse <iedowse@FreeBSD.org> | 2000-12-15 14:23:55 +0000 |
commit | 6db798cae4e1313dd0ef9b2bcaceca5ee73c75fd (patch) | |
tree | 2ffaeb6a81a0849ac527b505e488399c5633f791 /sbin/fsck_ffs/pass1b.c | |
parent | e6f0df2b205a873c4a828ea1277c5b5218cd55b0 (diff) | |
download | src-6db798cae4e1313dd0ef9b2bcaceca5ee73c75fd.tar.gz src-6db798cae4e1313dd0ef9b2bcaceca5ee73c75fd.zip |
Add a simple SIGINFO handler to fsck_ffs. Shortly after receipt of
a SIGINFO (normally via Ctrl-T), a line will be output indicating
the current phase number and progress information relevant to the
current phase.
Approved by: mckusick
Notes
Notes:
svn path=/head/; revision=70050
Diffstat (limited to 'sbin/fsck_ffs/pass1b.c')
-rw-r--r-- | sbin/fsck_ffs/pass1b.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sbin/fsck_ffs/pass1b.c b/sbin/fsck_ffs/pass1b.c index 7ef662f27364..9a37c1d5dc4c 100644 --- a/sbin/fsck_ffs/pass1b.c +++ b/sbin/fsck_ffs/pass1b.c @@ -65,6 +65,12 @@ pass1b() duphead = duplist; inumber = 0; for (c = 0; c < sblock.fs_ncg; c++) { + if (got_siginfo) { + printf("%s: phase 1b: cyl group %d of %d (%d%%)\n", + cdevname, c, sblock.fs_ncg, + c * 100 / sblock.fs_ncg); + got_siginfo = 0; + } for (i = 0; i < sblock.fs_ipg; i++, inumber++) { if (inumber < ROOTINO) continue; |