On Mon, Sep 29, 2008 at 06:46:03AM -0400, Wietse Venema wrote:
> > > Sep 29 09:09:11 relay postfix/showq[21060]: warning:
> > > deferred/3/3559EB80E7: uid 125: file has 2 links
>
> Postfix use the standard rename() function to move mail between incoming,
> active and deferred queues. Depending on the underlying implementation,
> this will result in a brief moment where a file has two names.
>
> For example, a safe implementation will use the equivalent of:
>
> rename(old, new) -> link(old, new) + unlink(old)
>
> I have never seen this warning on my own systems, but many years
> ago someone using Solaris reported a "file has 2 links" warning on
> the mailing list.
If a system is powered off during a rename() operation, a file may
indeed have 2 links. It takes two disk I/O's to rename a file, one
to add it the destination directory and another to remove it from the
source directory.
I a journalled file-system, the issue is resolved when incomplete
transactions are resolved at mount time. In a traditional file-system
if only the first I/O operation completes, the file will have two links
when the system reboots.
This issue is not a Postfix problem.
--
Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[EMAIL PROTECTED]>
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.