Re: Empty option for testing archives

Denis Corbin <[email protected]> Wed, 25 Apr 2007 22:00:53 +0200
Newsgroups gmane.comp.sysutils.backup.dar.libdar
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Johnathan Burchill wrote :
> Hi Denis,

Hello Johnathan,

> 
> Is it possible to have the "empty" boolean option added to the 
> libdar::archive->op_test() api? 

Well, I see no objections.

> 
> My plan is to use the "dummy run" option to quickly determine the number of 
> files considered by an operation's selection and subtree filters, and at the 
> same time in a different thread run the actual operation. Once the dummy 
> operation is finished, and it returns the number of files considered, I can 
> start to update my progress dialog based on the current stats of the running 
> operation. The other operations have this empty option, but not the op_test.
> 
> Presumably op_test() with empty=true would traverse the archive according to 
> the masks, and not perform the CRC checks.

Yep, thus if no CRC is done, no file reading is necessary, this will
make the thing even faster as no decompression/decryption will be necessary.

> 
> Cheers,
> JB
> 

Regards,
Denis.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGL7N1pC5CI8gYGlIRAqV8AKDHEQ1Srae4XyKkaxq35F/jUMrWuQCfWD6j
T3e0V1W+Gp1hicXnhgPw7BY=
=N1Zk
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/