[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Duplicity-tracker] [patch #6678] Add progress metering
From: |
Michael Terry |
Subject: |
[Duplicity-tracker] [patch #6678] Add progress metering |
Date: |
Tue, 18 Nov 2008 02:39:26 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/2008111318 Ubuntu/8.10 (intrepid) Firefox/3.0.4 |
URL:
<http://savannah.nongnu.org/patch/?6678>
Summary: Add progress metering
Project: duplicity
Submitted by: mikix
Submitted on: Mon 17 Nov 2008 09:39:24 PM EST
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
As talked about on the mailing list, it would be nice if duplicity had
progress metering. In particular, one designed to work with --dry-run to
enable frontends to (1) run with --dry-run to know some maximum progress
number and (2) run a second time, showing progress that grows until it hits
the number from (1).
Since --dry-run doesn't do any file reading for performance reasons, the only
stat we can play with is SourceFileSize. So progress metering (for backing up
anyway) should count up as SourceFileSize grows.
The attached patch does several things:
1. Improve logging support for machine-readable messages. Messages can have
multiple arguments, and any log with a None string will only go to
machine-readable logs, not the user-visible ones.
2. When not running with --dry-run, grow SourceFileSize organically. That
is, SourceFileSize grows as files are read, not in one lump sum every time we
look at a new file. This lets us handle the case of files that are larger
than our progress interval.
3. Print progress after each volume, at verbosity 5. When using --dry-run,
we only print to machine logs, because otherwise we'd print progress at each
file encountered, which would just generate spew.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 17 Nov 2008 09:39:24 PM EST Name: progress.diff Size: 11kB By:
mikix
<http://savannah.nongnu.org/patch/download.php?file_id=16873>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?6678>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [Duplicity-tracker] [patch #6678] Add progress metering,
Michael Terry <=