You are not logged in.

#1 2005-08-16 01:33:42

koyi
Member
From: Osaka, Japan
Registered: 2005-08-15
Posts: 37

find: hard link count is wrong for /:

I am facing this problem.

I just installed arch linux on one of my box and I have got this error message if I do find on the root:

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.

I have searched through the forums and I found threads which discuss the same problem happened on /proc. But in my case it is /.

After checking the link count for /, I didn't find anything strange.

"ls /" shows 16 subdir in /.
"ls -ld /" shows that / has 18 hard links.

Is this a bug with find?

Offline

#2 2005-08-16 02:05:57

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: find: hard link count is wrong for /:

/proc is a subdir of /
find is automatically recursive
could that be it?


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-08-16 02:14:55

koyi
Member
From: Osaka, Japan
Registered: 2005-08-15
Posts: 37

Re: find: hard link count is wrong for /:

Thanks cactus.
You always reply fast don't you? 8)

I seem to have find the reason from the findutils bug report mailing list.
And this is a quote from the mail.

Although find made me aware of the issue, the message it prints could be more useful: it doesn't show an accurate location of where the incorrect count exists (instead, it seems to use the path that you gave to find on the command line),...

The original mail is here:

http://lists.gnu.org/archive/html/bug-f … 00005.html

Offline

#4 2005-08-16 03:35:44

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: find: hard link count is wrong for /:

koyi wrote:

Thanks cactus.
You always reply fast don't you? 8)

heh. Sometimes I just notice things right away. Other times...
/me looks for that matching sock..


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

Board footer

Powered by FluxBB