bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: progress feedback ?


From: Andrew Clausen
Subject: Re: progress feedback ?
Date: Mon, 02 Oct 2000 16:29:06 +1100

Thomas Roelz wrote:
> I'm currently testing parted for resizing of Windows partitions
> (does a great job!) and I would like to get some kind of feedback
> during the resize operation. Is there a parameter/switch that I
> missed for the purpose of displaying progress information like
> percentage values or a character progress bar?
> (I haven't had the time to take a close look at the sources yet).

We haven't implemented anything like this yet.

Main reason: a progress meter (obviously) needs to be associated
with some kind of "operation".  (In fact, so should exceptions...)
In principle, libparted could be re-entrant, or alternatively,
the interface might not be re-entrant, but libparted itself be
multi-threaded.  We've got Plans TM.  We kind of don't want to commit
yet to how we communicate stuff about "operations", until we've
figured out where we're going...

OTOH, maybe I'm being a bit tight ;-)  Maybe I should hack up something,
while we think about the Right Thing.  I guess we could have a
progress handler (like we have an exception handler) that the API user
can register, that looks like this:

void progress_handler (PedFileSystem* fs, int percent)

Look OK?

Andrew Clausen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]