Re: what's this error message?

Theodore Y. Ts'o (tytso@MIT.EDU)
Mon, 4 May 1998 15:14:38 -0400


From: person@tstbed.clagwell.com
Date: Mon, 4 May 1998 00:26:20 -0500 (CDT)

Rather than printing a lot of .'s why not put a spinning icon there and
spint it every five seconds of so.

I havent looked at e2fsck code for a long time so I dont know how
complicated this suggestion is.

It's very easy to add something like this to the e2fsck code. In fact,
most of the framework to do this kind of progress updating (with
percentage completion bars, even!) is already in my source tree,
although it's not in the 1.10 release.

The problem is that e2fsck is run by fsck, which may have multiple
e2fsck's running in parallel. So if multiple e2fsck invocation tried to
print compeletion information, they would interfere with each other.

What we would need to do is something like what the rpm program does ---
send percentage completion information in some cleverly escaped fashion
(perhaps using a separate file descriptor to communicate this
information) and then make fsck smart about somehow displaying this
information. The thought of linking fsck with the curses library so
that it can do cursor position to do screen updates when you have
multiple fsck's running (and perhaps even a separate subwindow for the
each fsck's error reports and warning messages!) is kind of scary,
though! :-)

- Ted

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu