[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120131115447.759d72b1@pyramind.ukuu.org.uk>
Date: Tue, 31 Jan 2012 11:54:47 +0000
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: ebiederm@...ssion.com (Eric W. Biederman)
Cc: Greg KH <greg@...ah.com>, Jiri Slaby <jslaby@...e.cz>,
LKML <linux-kernel@...r.kernel.org>,
systemd-devel@...ts.freedesktop.org
Subject: Re: sysfs regression: wrong link counts
On Mon, 30 Jan 2012 19:45:10 -0800
ebiederm@...ssion.com (Eric W. Biederman) wrote:
> Alan Cox <alan@...rguk.ukuu.org.uk> writes:
>
> >> Isn't there some other "proper" way of doing this in userspace, or is
> >> this really the correct way?
> >
> > You can look at the S_IFMT bits and stuff however link count indicating
> > number of subdirectories is a standard Unix thing and used by many quite
> > mundane tools as an optimisation.
>
> Those tools for a decade or better all know to treat nlink == 1 as the
> case where the optimization does not apply.
Most of the do. but as has been demonstrated here - not all
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists