diff options
author | iedowse <iedowse@FreeBSD.org> | 2000-12-15 14:23:55 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2000-12-15 14:23:55 +0000 |
commit | 3e3c84c80c9f9500c397dc4b174259d631441b7f (patch) | |
tree | 8b803dfd960b8552dd62173dfdcbbabec2ada0d4 /sbin/fsck_ffs/fsck.h | |
parent | f15d921e9eff691ff94f40f1490b10cd0ab78d65 (diff) | |
download | FreeBSD-src-3e3c84c80c9f9500c397dc4b174259d631441b7f.zip FreeBSD-src-3e3c84c80c9f9500c397dc4b174259d631441b7f.tar.gz |
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
Diffstat (limited to 'sbin/fsck_ffs/fsck.h')
-rw-r--r-- | sbin/fsck_ffs/fsck.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/fsck_ffs/fsck.h b/sbin/fsck_ffs/fsck.h index a0be2a4..7365767 100644 --- a/sbin/fsck_ffs/fsck.h +++ b/sbin/fsck_ffs/fsck.h @@ -223,6 +223,8 @@ int lfmode; /* lost & found directory creation mode */ ufs_daddr_t n_blks; /* number of blocks in use */ ufs_daddr_t n_files; /* number of files in use */ +int got_siginfo; /* received a SIGINFO */ + #define clearinode(dp) (*(dp) = zino) struct dinode zino; @@ -280,6 +282,7 @@ struct inoinfo *getinoinfo __P((ino_t inumber)); struct dinode *getnextinode __P((ino_t inumber)); void getpathname __P((char *namebuf, ino_t curdir, ino_t ino)); struct dinode *ginode __P((ino_t inumber)); +void infohandler __P((int sig)); void inocleanup __P((void)); void inodirty __P((void)); struct inostat *inoinfo __P((ino_t inum)); |