[PLUG] Fixing incorrect hard link count in /proc/fs
Robert Citek
robert.citek at gmail.com
Mon Jun 19 13:52:08 UTC 2017
On Sun, Jun 18, 2017 at 9:26 AM, Rich Shepard <rshepard at appl-ecosys.com> wrote:
> On Sun, 18 Jun 2017, Robert Citek wrote:
>
>> Can you post the syntax of your find command?
>
> Robert,
>
> # find / -name qemu
>
> includes this:
>
> find: WARNING: Hard link count is wrong for `/proc/fs' (saw only st_nlink=6
> but already saw 4 subdirectories): this may be a bug in your file system
> driver. Aomatically turning on find's -noleaf option. Earlier results may
> have failed tonclude directories that should have been searched.
The underlying issue is likely with find and/or the kernel versions.
However, you can work around that in a couple of ways.
You probably don't need to search the /proc/ pseudo-filesystem for
qemu files. So here's a way to skip it:
# find / -path /proc/ -prune -o -name qemu
Alternatively, if '/' is the only filesystem where qemu files will
exist, you can restrict your find to it alone:
# find / -xdev -name qemu
Regards,
- Robert
More information about the PLUG
mailing list