12 Apr
2016
12 Apr
'16
5:30 p.m.
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.