diff options
author | scottl <scottl@FreeBSD.org> | 2004-02-28 07:50:42 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2004-02-28 07:50:42 +0000 |
commit | d9a0004b62fe76e69cb6f4ac21d673a03e1b97fe (patch) | |
tree | 54f005956185a8047740cf2432ee3919ed1ebc7c /sbin/fsck_ffs/pass4.c | |
parent | f9390aef0d6f1aa5e2e8a5caaa474a78f16eda0f (diff) | |
download | FreeBSD-src-d9a0004b62fe76e69cb6f4ac21d673a03e1b97fe.zip FreeBSD-src-d9a0004b62fe76e69cb6f4ac21d673a03e1b97fe.tar.gz |
In the case of a background fsck, periodically update the process title
with a progress update.
Diffstat (limited to 'sbin/fsck_ffs/pass4.c')
-rw-r--r-- | sbin/fsck_ffs/pass4.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sbin/fsck_ffs/pass4.c b/sbin/fsck_ffs/pass4.c index 847dd97..53132a6 100644 --- a/sbin/fsck_ffs/pass4.c +++ b/sbin/fsck_ffs/pass4.c @@ -68,6 +68,11 @@ pass4(void) cg * 100 / sblock.fs_ncg); got_siginfo = 0; } + if (got_sigalarm) { + setproctitle("%s p4 %d%%", cdevname, + cg * 100 / sblock.fs_ncg); + got_sigalarm = 0; + } inumber = cg * sblock.fs_ipg; for (i = 0; i < inostathead[cg].il_numalloced; i++, inumber++) { if (inumber < ROOTINO) |