ChangeLog, e2fsck.8.in, e2fsck.h, pass5.c, unix.c:
unix.c (PRS): Added new option -C, which causes e2fsck to print
progress updates so that callers can keep track of the completion
progress of e2fsck. Designed for use by progress, except for -C 0,
which prints a spinning report which may be useful for some users.
pass5.c (e2fsck_pass5): Use a finer-grained progress reporting scheme
(useful for larger filesystems).
e2fsck.h: Add progress_fd and progress_pos, for use by the Unix
progress reporting functions.
diff --git a/e2fsck/e2fsck.8.in b/e2fsck/e2fsck.8.in
index 62e7bae..41e6dc8 100644
--- a/e2fsck/e2fsck.8.in
+++ b/e2fsck/e2fsck.8.in
@@ -22,6 +22,10 @@
.B \-l|-L
.I bad_blocks_file
]
+[
+.B \-C
+.I fd
+]
.I device
.SH DESCRIPTION
.B e2fsck
@@ -69,6 +73,20 @@
program to find any blocks which are bad on the filesystem,
and then marks them as bad by adding them to the bad block inode.
.TP
+.I -C
+This option causes
+.B e2fsck
+to write completion information to the specified file descriptor
+so that the progress of the filesystem
+check can be monitored. This option is typically used by programs which are
+executing
+.BR e2fsck ,
+although -C 0 is a special case which will output a spinning
+character which can be useful for users who want to have something to watch
+while
+.B e2fsck
+goes about its business.
+.TP
.I -d
Print debugging output (useless unless you are debugging
.BR e2fsck ).