i_nlink of proc root in 2.6

From: Herbert Poetzl
Date: Sat Sep 27 2003 - 23:24:06 EST



Hi All!

just stumbled over a weird behaviour in 2.6.0-test5 ...

the procfs root directory inode is supposed to show
the number of 'links' according to the subdirectories,
but instead shows the value used for initialization,
although the i_nlink is updated in proc_root_lookup()

best,
Herbert

---------- should be >= 11
v
dr-xr-xr-x 2 root root 0 Sep 28 04:16 .
drwxr-xr-x 14 1000 1000 1024 Jul 13 20:39 ..
dr-xr-xr-x 3 root root 0 Sep 28 04:16 1
dr-xr-xr-x 3 root root 0 Sep 28 04:16 10
dr-xr-xr-x 3 root root 0 Sep 28 04:16 2
dr-xr-xr-x 3 root root 0 Sep 28 04:16 3
dr-xr-xr-x 3 root root 0 Sep 28 04:16 4
dr-xr-xr-x 3 root root 0 Sep 28 04:16 5
dr-xr-xr-x 3 root root 0 Sep 28 04:16 6
dr-xr-xr-x 3 root root 0 Sep 28 04:16 7
dr-xr-xr-x 3 root root 0 Sep 28 04:16 8

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/