-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/31/2014 05:34 AM, Simone Lazzaris wrote:
> The file descriptor number 5 of that process is pointing at the maildirsize 
> file of the mailbox,
> and is marked as "deleted" in /proc/<procid>/fd
> 
> We store the mail in a NetApp NFS share, without locking for performance 
> reasons, and I think
> I've found the problem: the file is deleted by someone else while 
> vdelivermail is reading it.

You can correct this particular issue by making sure you're mounting with at 
least NFS v3, and that
the time on the two systems is synchronized.  NFS v4 would, of course, be 
better.

> 
> In maildirquota.c, function maildirsize_read, there is a while loop that 
> reads: while (l) { 
> n=read(f, p, l); if (n < 0) {
> 
> But n is defined as a unsigned int (64 bit) , so even if "read" returns a 
> negative value (error)
> the "if" is never trigged.

I've made note of this.
Thanks for the report!
- -- 
/*
    Matt Brookings <m...@inter7.com>       GnuPG Key 62817373
    Software developer                     Systems technician
    Inter7 Internet Technologies, Inc.     (815)776-9465
*/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iQEcBAEBAgAGBQJS69n9AAoJEOjQVexigXNz1JMH/0WvMHTImzOWfHr980YVcmtB
0IFAAKn6PHUP57y2wm+cJ/+uEu9vz9YMOHRpQK/aoBu9kIzQHRF2GGvj0eSnuh7v
1+LqwB1X3j3dDdNiMHtC6rjFkueuDG/fNZ5r8YfHTc+azl5lhiFRZz9nqSuPjShq
ZAU0TYXBU1wd3/0LvRvA9mAltbJs0CWgE1s/ht0r4bZv+b4Fq4Gy2alKN0bijCgu
145bIDhDbrczlp2Vmz8USEZJsTJj2SjxWRcFRha5VYP0zgmFAdrcKNdAESkEWVV3
hcMz15N870OSA21ZAEwd/rppG8rZf5sCRWOuqJRg1WrtTuEZdYqSKt5vAJ3eShE=
=qtFi
-----END PGP SIGNATURE-----

Reply via email to