LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-13-2015, 05:06 PM   #1
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
find: WARNING: Hard link count is wrong....


I have just moved to -current and all is well but I have noted an error with find:

Code:
root@ilium/home/andrew# find / -iname abcde
find: WARNING: Hard link count is wrong for `/proc/fs' (saw only st_nlink=6 but we already saw 4 subdirectories): this may be a bug in your file system driver.  Automatically turning on find's -noleaf option.  Earlier results may have failed to include directories that should have been searched.
/usr/bin/abcde
/home/andrew/mail/mailboxes/abcde
/home/andrew/.local/share/Trash/expunged/2895694272/usr/local/bin/abcde
/home/andrew/source/perl/abcde
/home/andrew/source/abcde
find: `/home/andrew/.gvfs': Permission denied
/home/andrew/development/abcde
/home/andrew/development/abcde/abcde
root@ilium/home/andrew#
Google does not have much to offer although this claims it can be ignored. Any thoughts?

Edit: Contents of proc fs:

Code:
andrew@ilium~$ ls -l /proc/fs
total 0
dr-xr-xr-x 3 root root 0 Nov 14 10:11 ext4
dr-xr-xr-x 3 root root 0 Nov 14 10:11 jbd2
dr-xr-xr-x 2 root root 0 Nov 14 10:11 lockd
dr-xr-xr-x 2 root root 0 Nov 14 10:11 nfsd
dr-xr-xr-x 2 root root 0 Nov 14 10:11 nfsfs
andrew@ilium~$

Last edited by andrew.46; 11-13-2015 at 05:10 PM.
 
Old 11-13-2015, 07:29 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
This is an issue that I have seen using find on CIFS mounted filesystems from Windows machines. As is stated in the error message and the link you gave, just use the '-noleaf' option to find and live with the performance hit that arises from the additional stat calls.
It is an issue that arises when the mounted filesystem does not provide (from here)
Quote:
a value of at least 2 for the NumberOfLinks value on a directory like we expect with POSIX-y servers
 
Old 11-13-2015, 08:16 PM   #3
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Original Poster
Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
Thanks for your answer allend. To tell the truth the searches I normally undertake with find are usually a little more finely focused so rarely traverse /proc/fs. Still it is a little niggle...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard link count is wrong dwarf007 Linux - General 1 09-30-2008 01:34 PM
find: WARNING: Hard link count is wrong for /proc/1: Ramonvel Slackware 2 05-27-2008 10:28 PM
selinux hard link count blues jmjaffe Fedora 1 06-23-2006 12:33 PM
Error when using 'find' -- "WARNING: Hard link count is wrong..." xGreenmanx Linux - Software 6 03-11-2006 06:35 PM
WARNING: Hard link count is wrong for /proc Fr33B5D Linux - General 1 08-30-2005 06:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration