Skip to contentSkip to conversation

i_nlink of proc root in 2.6

DISCUSSION Herbert Poetzl 1 participant 1 message Sep 28, 2003

lore
Share & tools
lore
#0 lore raw

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