Re: find: WARNING: Hard link count is wrong for /proc/1

From: Vegard Nossum
Date: Mon Jun 02 2008 - 03:01:16 EST


On Mon, Jun 2, 2008 at 8:31 AM, Vegard Nossum <vegard.nossum@xxxxxxxxx> wrote:
> Hi,
>
> 2.6.26-rc4 seems to exhibit the following (new since at least 2.6.24)
> warning when running find /proc/1:
>
> 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 prime suspect is

commit e9720acd728a46cb40daa52c99a979f7c4ff195c
Author: Pavel Emelyanov <xemul@xxxxxxxxxx>
Date: Fri Mar 7 11:08:40 2008 -0800

[NET]: Make /proc/net a symlink on /proc/self/net (v3)


as this patch introduces a new directory entry without bumping the nlink count.

Will this do? (Untested)

Vegard