Συντάκτης: Jasen Betts Ημερομηνία: Προς: exim-users Αντικείμενο: Re: [exim] Exim, Dovecot, mdir and hardlinks - a true story
On 2019-08-15, Jeremy Harris via Exim-users <exim-users@???> wrote: > On 14/08/2019 20:09, Cyborg via Exim-users wrote:
>> I really believe, an option to match quota/du behaviour and use stat()
>> on each file to check
>> the inode, is fine. A) it's relatively simple to do, B) does not break
>> existing installations and C) works on NFS as well, i think.
>
> We already use stat on each file, unless quota_size_regex is set.
>
> If we take Nigel's excellent point that dividing the filesize by the
> link count, both from a stat call, does the job - plus document the
> point that using quota_size_regex gets quotas wrong in environments
> using linking - this would seem to be the minimum possible change.
>
> Does it satisfy enough cases?
I think that if OS filesystem quotas are in use (rather than software
quotas) exim will be getting errors in response to open(2) write(2)
or close(2) calls when it attempts to exceed them, and it probably
already handles that scenario fairly well.
--
When I tried casting out nines I made a hash of it.