You are not logged in.

#1 2008-05-30 13:50:19

wonglaye
Member
Registered: 2008-05-29
Posts: 8

find: WARNING: Hard link count is wrong for /proc/1: this may be a bug

hi all,
when i 'find / -name abc' , it say:

find: WARNING: Hard link count is wrong for /proc/1: 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.

my kernel is 2.6.25, filesytem is ext2/boot ext3/other


thank you!

Last edited by wonglaye (2008-05-30 14:34:21)

Offline

#2 2008-05-30 16:58:28

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: find: WARNING: Hard link count is wrong for /proc/1: this may be a bug

Offline

#3 2008-05-31 11:01:59

wonglaye
Member
Registered: 2008-05-29
Posts: 8

Re: find: WARNING: Hard link count is wrong for /proc/1: this may be a bug

sorry what does it mean?

Offline

#4 2008-05-31 11:08:07

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: find: WARNING: Hard link count is wrong for /proc/1: this may be a bug

I'll highlight the important parts from that link for you:

Question wrote:

I routinely use "find / -name ......", so how do I eliminate /proc from the search path?

Answer wrote:

I almost always use the "-xdev" option to prevent 'find' from descending
into file systems other than the ones I explcitly specified, e.g.,

     find -xdev / /usr /var ...

It's pretty rare that I actually want to search my entire system, which
would include a news spool, a seldom used MS-Windows file system,
possibly a mounted CD or DVD, ..., and of course /proc.

why_no_proc wrote:

The problem with the link count in /proc is that it changes every time a
process is created or terminates, so the number of directories that
'find' sees during processing might not agree with the link count that
it read at the start. I admit that doesn't seem terribly likely unless
the system is quite busy, but it can certainly happen.

Last edited by dyscoria (2008-05-31 11:11:19)


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#5 2008-05-31 11:43:21

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: find: WARNING: Hard link count is wrong for /proc/1: this may be a bug

wonglaye wrote:

sorry what does it mean?

That find reads the link count when it starts processing a directory, but proc's link count changes every time a process gets created and that can happen while find is still processing proc. This gives find the impression of a discrepancy.

Offline

#6 2008-05-31 14:48:20

wonglaye
Member
Registered: 2008-05-29
Posts: 8

Re: find: WARNING: Hard link count is wrong for /proc/1: this may be a bug

thank you all,
ye i kno the principle of 'find' and '/proc' cause these errors
do you mean i have to use 'find -xdev' and foget 'find' ?
but my box has never occur these errors, no matter in ext2/3 or reiserfs

Offline

Board footer

Powered by FluxBB