Ivan Pintori writes:

« HTML content follows »

@Sam I am having domain difficulties so I read your reply online, but did to receive it. (so, yeah, tonight has been a great night ;) )


Did the test, and doesn’t look good:



[courier@edge ~]$ cd /usr/local/mbox/
[courier@edge mbox]$ cd <URL:http://pintori.it/>pintori.it/
[courier@edge <URL:http://pintori.it>pintori.it]$ mkdir testmbox
[courier@edge <URL:http://pintori.it>pintori.it]$ cd testmbox/


[courier@edge testmbox]$ mkdir tmp
[courier@edge testmbox]$ mkdir new
[courier@edge testmbox]$ cp /dev/null /tmp/foo
[courier@edge testmbox]$ ln /tmp/foo new/foo
ln: failed to create hard link ‘new/foo’ => ‘/tmp/foo’: Invalid cross-device link


[courier@edge testmbox]$ cp /dev/null tmp/foo
[courier@edge testmbox]$ ln tmp/foo new/foo
ln: failed to create hard link ‘new/foo’ => ‘tmp/foo’: Input/output error


[courier@edge testmbox]$ mount
/dev/mapper/fedora--server-root on / type ext4 (rw,relatime,data=ordered)
tmpfs on /tmp type tmpfs (rw)
xx.xx.xx.xx:/mnt/user/mailbox on /usr/local/mbox type nfs (rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,tim eo=600,retrans=2,sec=sys,mountaddr=xx.xx.xx.xx,mountvers=3,mountport=35864,mo untproto=udp,local_lock=none,addr=xx.xx.xx.xx)




So I did try hard linking between /tmp and the NFS mounted directory, and it tells me it’s invalid.

This is the expected result.

Did try hard linking within the same mount, and got an IO error.. mmmm

And that's the problem. I'm sure that hard links on a traditional NFS volume have worked for decades.

So your question is what exactly are you mounting via NFS, that refuses to create hard links. Now, the fact that it fails to create a hard link, by itself, is not a showstopper. maildrop will fallback to using rename(), but it expects the get an EXDEV, like the case with an attempted cross-mount link, and not EIO. AFS always returns EXDEV when attempting to link files across directories, since any directory in an AFS hierarchy could be migrated to a different cell. EXDEV is a proper POSIX errno, when a hard link cannot be supported. EIO really indicates filesystem corruption.

Attachment: pgp8U7muRgA7g.pgp
Description: PGP signature

------------------------------------------------------------------------------
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to