lkml.org 
[lkml]   [2012]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: sysfs regression: wrong link counts
On Mon, 30 Jan 2012 19:45:10 -0800
ebiederm@xmission.com (Eric W. Biederman) wrote:

> Alan Cox <alan@lxorguk.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


\
 
 \ /
  Last update: 2012-01-31 12:57    [W:0.125 / U:0.940 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site