linux/fs/proc
Daniel Drake bcf88e1163 [PATCH] procfs: Fix hardlink counts
The pid directories in /proc/ currently return the wrong hardlink count - 3,
when there are actually 4 : ".", "..", "fd", and "task".

This is easy to notice using find(1):
	cd /proc/<pid>
	find

In the output, you'll see a message similar to:

find: WARNING: Hard link count is wrong for .: this may be a bug in your
filesystem driver.  Automatically turning on find's -noleaf option.
Earlier results may have failed to include directories that should have
been searched.

http://bugs.gentoo.org/show_bug.cgi?id=86031

I also noticed that CONFIG_SECURITY can add a 5th: attr, and performed a
similar fix on the task directories too.

Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-01 08:59:03 -07:00
..
array.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
base.c [PATCH] procfs: Fix hardlink counts 2005-05-01 08:59:03 -07:00
generic.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
inode-alloc.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
inode.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
internal.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
kcore.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
kmsg.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mmu.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nommu.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
proc_devtree.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
proc_misc.c [PATCH] meminfo: add Cached underflow check 2005-04-16 15:24:08 -07:00
proc_tty.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
root.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
task_mmu.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
task_nommu.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00