LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Find warnings... (https://www.linuxquestions.org/questions/suse-opensuse-60/find-warnings-434512/)

kkempter 04-12-2006 11:24 AM

Find warnings...
 
Hi List;

each time I run find I get this message:

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



Any thoughts, suggestions, etc??

Thanks...

/Kevin

strick1226 04-12-2006 11:33 AM

I ran into this a little while back as well. Here's where I found this answer:
https://www.redhat.com/archives/fedo.../msg02801.html

From the above link:

Quote:

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.


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.
Hope this helps!


All times are GMT -5. The time now is 08:48 PM.