Re: DAR format questions

"gulikoza" <[email protected]> Sat, 7 Oct 2006 10:59:31 +0200
Newsgroups gmane.comp.sysutils.backup.dar.general
Message-ID <003301c6e9ee$e833b970$020aa8c0@winxp>
Hello Denis,

> For that you'd better grap from source code (src/libdar/catalogue.cpp):
>....

Seems the delay posting to the list is rather long, I have already figured
most of the stuff from the source. But thanks for the answers anyway!

> No problem, but I don't understand why you are not using libdar's API
> rather than reinventing the wheel... First, you may miss some
> compatibility issue with older archive format, second you will have to
> track any new feature code and reimplement it on you own... while you
> could just link you plugin to libdar (either statically or dynamically)
> and call its functions thanks to its well defined API. Moreover you will
> have support for new features and bug fixes without much change for your
> plugin.

I have already tried some time ago, but it does not compile under MinGW (has
this changed recently?). And the Cygwin stuff doesn't get along very nicely
with native Windows programs, at least in my case....
At some point I have also contacted Wesley Leggette hoping he might finish
MSVC dar port but now I have decided to go there on my own :-) I don't need
complete functionality, just some basic browsing and decompression.

The plugin is available here if somebody needs it:
http://www.si-gamer.net/gulikoza/dar-wcx.zip (I can post source as well)
It currently supports bzip2 or uncompressed, single slice, unencrypted dars
(and 64-bit infinint only ;-))

I have one additional question: the docs also specify UTF-8 is used for
filename encoding. I have atleast one dar where this isn't true. The
encoding is cp1250 (and surprisingly dar was made in Linux). I suppose there
is no way of telling what the encoding of filenames is?

Also, which algorithm is used for calculating checksums? I assume checksum
is done on uncompressed file before they are compressed and written to the
dar archive?

Thanks again,

gulikoza


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV