sis deduplication broken from 2.2.16 upwards
Alexander Moisseev
moiseev at mezonplus.ru
Tue Apr 12 14:30:58 UTC 2016
On 11.03.2016 3:56, Timo Sirainen wrote:
>> So, after the fix is applied, does dovecot silently delete the
>> duplicated files, or is there a command that needs to be run manually?
>
> You'd have to do it manually in some way. A script that does something like:
>
> Go through all attachment directories and for each file:
> - Sort files by filename
> - Identify that files A and B the same (beginning of the filename begins with same hash), but have a different inode
> - ln A B.tmp && mv B.tmp B
>
The problem turned out to be a bit more complicated than that.
Finally a came up with that script:
https://github.com/moisseev/doveadm-tools/blob/master/bin/dsisck
It assumes Dovecot should not run.
More information about the dovecot
mailing list