Re: [Dovecot] dsync, hard-links and refcounts

2012-02-21 Thread Christoph Bußenius
On 21.02.2012 13:15, Timo Sirainen wrote: And they might even become deduplicated if you do doveadm force-resync + purge. I hadn't tried that yet. Thanks for the hint, this is probably all we need. Cheers, Christoph -- Christoph Bußenius Rechnerbetriebsgruppe der Fakultäten Informatik und

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-21 Thread Timo Sirainen
On 21.2.2012, at 13.55, Christoph Bußenius wrote: > Apart from the waste of space, I was wondering: > Is it okay for an mdbox to have several duplicate instances of a message with > the same GUID? Might some kind of corruption arise from this? No corruption. And they might even become deduplica

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-21 Thread Christoph Bußenius
On 21.02.2012 12:04, Timo Sirainen wrote: On Tue, 2012-02-21 at 11:23 +0100, Christoph Bußenius wrote: Hi, On 15.02.2012 04:46, Timo Sirainen wrote: It worked when the GUID already existed somewhere in destination, but not if it was added only during the same session. The attached patch fixe

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-21 Thread Timo Sirainen
On Tue, 2012-02-21 at 11:23 +0100, Christoph Bußenius wrote: > Hi, > > On 15.02.2012 04:46, Timo Sirainen wrote: > > > > It worked when the GUID already existed somewhere in destination, but not > > if it was added only during the same session. The attached patch fixes it. > > I'll commit it to

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-21 Thread Christoph Bußenius
Hi, On 15.02.2012 04:46, Timo Sirainen wrote: It worked when the GUID already existed somewhere in destination, but not if it was added only during the same session. The attached patch fixes it. I'll commit it to v2.1 hg after I'll release v2.1.0.. sorry to bother you again, but I think the

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-20 Thread Christoph Bußenius
On 15.02.2012 04:46, Timo Sirainen wrote: On 13.2.2012, at 16.40, Timo Sirainen wrote: It should deduplicate when GUIDs are the same.. I guess I'll have to look into why it's not working. The attached patch fixes it. I'll commit it to v2.1 hg after I'll release v2.1.0.. After replacing "do

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-15 Thread Christoph Bußenius
On 15.02.2012 04:46, Timo Sirainen wrote: The attached patch fixes it. I'll commit it to v2.1 hg after I'll release v2.1.0.. Thanks. I guess it would be wise to upgrade our new Dovecot mail store to 2.1 before we migrate all our Courier maildir users to it... Cheers, Chnristoph -- Christo

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-14 Thread Timo Sirainen
On 13.2.2012, at 16.40, Timo Sirainen wrote: > On 13.2.2012, at 16.16, Christoph Bußenius wrote: > >> when creating a copy of a mail, dovecot provides a feature that will store >> its contents only once. In maildir, this is done by means of hard links, >> while mdbox has some special refcounti

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-13 Thread Christoph Bußenius
On 02/13/2012 03:40 PM, Timo Sirainen wrote: It should deduplicate when GUIDs are the same.. I guess I'll have to look into why it's not working. I’d very much appreciate that. We will have to migrate many large mailboxes, and it would be a pity to needlessly waste space. I got the same re

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-13 Thread Timo Sirainen
On 13.2.2012, at 16.16, Christoph Bußenius wrote: > when creating a copy of a mail, dovecot provides a feature that will store > its contents only once. In maildir, this is done by means of hard links, > while mdbox has some special refcounting mechanism. > > My question is, how can we convert

[Dovecot] dsync, hard-links and refcounts

2012-02-13 Thread Christoph Bußenius
Hi, when creating a copy of a mail, dovecot provides a feature that will store its contents only once. In maildir, this is done by means of hard links, while mdbox has some special refcounting mechanism. My question is, how can we convert mails from maildir to mdbox without duplicating thes