From mboxrd@z Thu Jan 1 00:00:00 1970 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: Your message of "Sat, 14 Jan 2012 00:14:25 +0100." References: <20120113113026.GA419@polynum.com> <20120113133836.GA484@polynum.com> <20120113140834.GA849@polynum.com> <20120113160142.GA98@polynum.com> <20120113171734.77a40595@wks-ddc.exosec.local> <20120113164101.GB647@polynum.com> <4a3253f1f2669e02ba348dd33fe81688@coraid.com> <20120113175801.GB1890@polynum.com> Date: Fri, 13 Jan 2012 16:30:32 -0800 From: Bakul Shah Message-Id: <20120114003032.1C08F1CC8F@mail.bitblocks.com> Subject: Re: [9fans] fossil pb: FOUND! Topicbox-Message-UUID: 5b29dee4-ead7-11e9-9d60-3106f5b1d025 On Sat, 14 Jan 2012 00:14:25 +0100 Francisco J Ballesteros wrote: > but if you insert extra music in front of your track dedup in venti won't help. > or would it? No. Venti operates at block level. You are better off using an SCM like mercurial (though commits are likely to be slow). In case you were wondering, the mercurial repo format does seem to be `dedup' friendly as new data is appended at the end. $ du -sh .hg 100M .hg $ ls -l .hg/store/data/foo.d -rw-r--r-- 1 xxxxx xxxxx 104857643 Jan 13 16:13 .hg/store/data/foo.d $ cp .hg/store/data/foo.d xxx # save a copy of repo data for foo $ echo 1 | cat - foo > bar && mv bar foo # prepend a couple of bytes to foo $ hg commit -m'test4' $ ls -l .hg/store/data/foo.d -rw-r--r-- 1 xxxxx xxxxx 104857657 Jan 13 16:16 .hg/store/data/foo.d $ cmp xxx .hg/store/data/foo.d # compare old repo data with new cmp: EOF on xxx $ du -sh .hg 100M .hg