Re: [systemd-devel] sysfs regression: wrong link counts

2012-01-30 Thread Eric W. Biederman
Alan Cox 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 op

Re: [systemd-devel] sysfs regression: wrong link counts

2012-01-30 Thread Eric W. Biederman
Greg KH writes: > On Mon, Jan 30, 2012 at 10:10:59PM +, Alan Cox wrote: >> > 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

Re: [systemd-devel] sysfs regression: wrong link counts

2012-01-30 Thread Al Viro
On Mon, Jan 30, 2012 at 02:27:17PM -0800, Greg KH wrote: > On Mon, Jan 30, 2012 at 10:10:59PM +, Alan Cox wrote: > > > 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 i

Re: [systemd-devel] sysfs regression: wrong link counts

2012-01-30 Thread Al Viro
On Mon, Jan 30, 2012 at 10:43:50PM +, Al Viro wrote: > On Mon, Jan 30, 2012 at 02:27:17PM -0800, Greg KH wrote: > > On Mon, Jan 30, 2012 at 10:10:59PM +, Alan Cox wrote: > > > > Isn't there some other "proper" way of doing this in userspace, or is > > > > this really the correct way? > > >

Re: [systemd-devel] sysfs regression: wrong link counts

2012-01-30 Thread Greg KH
On Mon, Jan 30, 2012 at 10:10:59PM +, Alan Cox wrote: > > 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 u

Re: [systemd-devel] sysfs regression: wrong link counts

2012-01-30 Thread Alan Cox
> 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. Alan __

Re: [systemd-devel] sysfs regression: wrong link counts

2012-01-30 Thread Greg KH
On Mon, Jan 30, 2012 at 10:56:26PM +0100, Jiri Slaby wrote: > Hi, > > I cannot boot properly with this commit: > commit 524b6c5b39b931311dfe5a2f5abae2f5c9731676 > Author: Eric W. Biederman > Date: Sun Dec 18 20:09:31 2011 -0800 > > sysfs: Kill nlink counting. > > > 1) network systemd rul