You are not logged in.
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
Improve your desktop responsiveness and font rendering and ALSA sound and BusyBox init
Offline
sorry what does it mean?
Offline
I'll highlight the important parts from that link for you:
I routinely use "find / -name ......", so how do I eliminate /proc from the search path?
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.
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
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
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