[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #26641] Wrong directory hard link count message on automounted dire

From: anonymous
Subject: [bug #26641] Wrong directory hard link count message on automounted directory.
Date: Mon, 10 Aug 2009 18:06:57 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/2009042718 CentOS/3.0.10-1.el5.centos Firefox/3.0.10

Follow-up Comment #4, bug #26641 (project findutils):

Could you ask this of the autofs folks yourself?  I am, of course, willing to
do my part to help resolve this issue, but I would think that me being a
middle-man between findutils developers and autofs developers would be more of
a hindrance than a help.

My personal opinion (for what it's worth) is that autofs setting st_link to 1
is not a good general solution.  It might serve as a useful clue to find, but
could confuse other code elsewhere (not to mention humans).

Would this be reasonable?:

Just do 2 stat(2)s, one before, one after opening the directory.  If the
st_dev field of the 2 stats yield differing st_dev values, I think that's a
fairly foolproof(?) indication that an automount has occurred, in which case
you can throw away (ignore) the first stat and use the second.  The
performance implication may not be negligible, but could probably be mitigated
if the 2nd stat is only done *after* you have reason to suspect the st_link


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]