Re: [dev] wrap: minimalist archiving tool

2010-08-09 Thread David Tweed
On Mon, Aug 9, 2010 at 12:48 PM, Connor Lane Smith wrote: > On 9 August 2010 04:54, David Tweed wrote: >> The one thing that leaps out at me is that there's no checksumming of >> either the individual files or the whole the archive file performed, >> so if you give it a damaged archive you won't

Re: [dev] wrap: minimalist archiving tool

2010-08-09 Thread Connor Lane Smith
Hey, On 8 August 2010 16:02, Szabolcs Nagy wrote: > there was a bug in the encoder, it could corrupt your data It seemed to work during testing, according to cmp, but thanks for the warning. On 9 August 2010 03:33, Anders Andersson wrote: > After reading the source it seems a little less gener

Re: [dev] wrap: minimalist archiving tool

2010-08-09 Thread Szabolcs Nagy
* David Tweed [2010-08-09 04:54:25 +0100]: > The one thing that leaps out at me is that there's no checksumming of to some extent this can be worked around find dir -type f | xargs sha1sum >dir.sum find dir -type f | xargs wrap c dir.sum >dirwithsum.a or even sha1sum dir.a >dir.a.sum but yes, d

Re: [dev] wrap: minimalist archiving tool

2010-08-08 Thread David Tweed
On Fri, Aug 6, 2010 at 3:10 PM, Connor Lane Smith wrote: > I've written a tiny archiver, which I've called "wrap" for lack of a > better name. It is 120 lines of C, and yields far smaller archives > than tar while overcoming the various crippling limitations of ar. It > does, however, only store f

Re: [dev] wrap: minimalist archiving tool

2010-08-08 Thread Anders Andersson
On Sun, Aug 8, 2010 at 8:26 PM, Szabolcs Nagy wrote: > * Connor Lane Smith [2010-08-06 15:10:29 +0100]: > >> I've written a tiny archiver, which I've called "wrap" for lack of a > > looks nice (nicer than tar, cpio or gnu ar) > >> I'm not quite sure of the use case for this, but I don't know, som

Re: [dev] wrap: minimalist archiving tool

2010-08-08 Thread Szabolcs Nagy
* Connor Lane Smith [2010-08-06 15:10:29 +0100]: > I've written a tiny archiver, which I've called "wrap" for lack of a looks nice (nicer than tar, cpio or gnu ar) > I'm not quite sure of the use case for this, but I don't know, someone i'm not sure either but it'd be unixy to do find dir | x

Re: [dev] wrap: minimalist archiving tool

2010-08-08 Thread Szabolcs Nagy
* Connor Lane Smith [2010-08-06 15:10:29 +0100]: > Interestingly during testing the best compression results came from > our very own sflate. there was a bug in the encoder, it could corrupt your data (i noticed it after rewriting a few things, but forgot to backport the fix to the repo on suck

[dev] wrap: minimalist archiving tool

2010-08-06 Thread Connor Lane Smith
Hey all, I've written a tiny archiver, which I've called "wrap" for lack of a better name. It is 120 lines of C, and yields far smaller archives than tar while overcoming the various crippling limitations of ar. It does, however, only store files - subdirectories are implicit. Interestingly during