Yann Dupont
2011-Oct-17 07:19 UTC
[Dovecot] Attachements with SIS : shauld all the same files share the same inode ?
Hello. I configured SIS , and all seems to work well, but I noticed something strange : For exemple, this attachement : 6e/2d# ls -al 6e2df299* | sort -n 104 instance of -rw------- 104 vmail vmail 346584 16 oct. 17:47 6e2df299fa96daec9b4735d07c494046429be4d6-ffd0d1xxxx The files are hardlinked, so it seems ok, but I also see 9 others files in the same directory : -rw------- 1 vmail vmail 346584 16 oct. 17:47 6e2df299fa96daec9b4735d07c494046429be4d6-0519df2a94fc9a4e1f4100008a6b99b6 -rw------- 1 vmail vmail 346584 16 oct. 17:47 6e2df299fa96daec9b4735d07c494046429be4d6-1790b92994fc9a4e1a4100008a6b99b6 as you can see, same prefix, If I compare them with diff, they are all the same files. ls -i show that 104 have the same inode, as expected, and the 9 remaining files have different inodes. I expected all the files share the same inodes. Is there something wrong here ? My setup is debian squeeze + auto packages from http://xi.rename-it.nl/debian/ dovecot is 2:2.0.15-0~auto+21 thanks, -- Yann Dupont - Service IRTS, DSI Universit? de Nantes Tel : 02.53.48.49.20 - Mail/Jabber : Yann.Dupont at univ-nantes.fr
Timo Sirainen
2011-Nov-05 16:23 UTC
[Dovecot] Attachements with SIS : shauld all the same files share the same inode ?
On Mon, 2011-10-17 at 09:19 +0200, Yann Dupont wrote:> 104 instance of -rw------- 104 vmail vmail 346584 16 oct. 17:47 > 6e2df299fa96daec9b4735d07c494046429be4d6-ffd0d1xxxx > > The files are hardlinked, so it seems ok, but I also see 9 others files > in the same directory : > > > -rw------- 1 vmail vmail 346584 16 oct. 17:47 > 6e2df299fa96daec9b4735d07c494046429be4d6-0519df2a94fc9a4e1f4100008a6b99b6 > -rw------- 1 vmail vmail 346584 16 oct. 17:47 > 6e2df299fa96daec9b4735d07c494046429be4d6-1790b92994fc9a4e1a4100008a6b99b6 > > as you can see, same prefix, If I compare them with diff, they are all > the same files.I guess you have "mail_attachment_fs = sis posix" (default)? Sounds like there could be a bug where SIS does comparison of files but for some reason thinks they are different. You could try if you can merge them with: mkdir /tmp/queue touch /tmp/queue/6e2df299fa96daec9b4735d07c494046429be4d6-foo doveadm sis deduplicate /var/attachments /tmp/queue