Re: [Dovecot] Turning off "Fixed Duplicates" feature

2009-11-12 Thread Jordan Tardif
I actually meant that you should do both. But no, 1) shouldn't cause problems. Or actually looking at the code, it already tries to detect duplicate hard links and unlinks one of them. You could change the code from: if (st1.st_ino == st2.st_ino && CMP_DEV_T(st1.st_dev, st2.s

Re: [Dovecot] Turning off "Fixed Duplicates" feature

2009-11-12 Thread Timo Sirainen
On Thu, 2009-11-12 at 16:22 -0800, Jordan Tardif wrote: > > I guess the easiest solution would be to: > > > > 1) Remove the duplicate detection/fixing code from Dovecot code. > > 2) Create a script that resolves duplicates by deleting one of them. > > So if I do #1 , do you see this causing any ot

Re: [Dovecot] Turning off "Fixed Duplicates" feature

2009-11-12 Thread Jordan Tardif
On Thu, 12 Nov 2009, Timo Sirainen wrote: On Thu, 2009-11-12 at 16:12 -0800, Jordan Tardif wrote: Yes that depends on DNS updating. So is there not way to avoid this Duplication problem if you need to do an rsync 2x? Not really. The move should preferably be atomic.. With Dovecot v2.0 there's

Re: [Dovecot] Turning off "Fixed Duplicates" feature

2009-11-12 Thread Timo Sirainen
On Thu, 2009-11-12 at 16:12 -0800, Jordan Tardif wrote: > Yes that depends on DNS updating. So is there not way to avoid this > Duplication problem if you need to do an rsync 2x? Not really. The move should preferably be atomic.. With Dovecot v2.0 there's dsync utility, which would pretty much do

Re: [Dovecot] Turning off "Fixed Duplicates" feature

2009-11-12 Thread Jordan Tardif
On Thu, 2009-11-12 at 16:04 -0800, Jordan Tardif wrote: Heres a litle bit of background on what we are doing and maybe if you have time you can let me know what you think the best way of doing this would be. When we move users to dovecot servers, we first create a new user on the destination mach

Re: [Dovecot] Turning off "Fixed Duplicates" feature

2009-11-12 Thread Timo Sirainen
On Thu, 2009-11-12 at 16:04 -0800, Jordan Tardif wrote: > Heres a litle bit of background on what we are doing and maybe if you have > time you can let me know what you think the best way of doing this would > be. When we move users to dovecot servers, we first create a new user on > the destina

Re: [Dovecot] Turning off "Fixed Duplicates" feature

2009-11-12 Thread Jordan Tardif
On Thu, 2009-11-12 at 15:42 -0800, Jordan Tardif wrote: Is there a way to disable this feature? Seems to be causing more harm then good right now. Without getting into too much details it is fixing the duplcates but it does not remove the old file, and the new file it creates is not marked as rea

Re: [Dovecot] Turning off "Fixed Duplicates" feature

2009-11-12 Thread Timo Sirainen
On Thu, 2009-11-12 at 15:42 -0800, Jordan Tardif wrote: > Is there a way to disable this feature? Seems to be causing more harm then > good right now. Without getting into too much details it is fixing the > duplcates but it does not remove the old file, and the new file it creates > is not mark