[systemd-devel] sysfs regression: wrong link counts

Alan Cox alan at lxorguk.ukuu.org.uk
Mon Jan 30 14:10:59 PST 2012


> 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


More information about the systemd-devel mailing list