[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: Gecko/2008111318 Ubuntu/8.10 (intrepid) Firefox/3.0.4


                 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



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:



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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