2005-10-20 18:42:10

by Harald Dunkel

[permalink] [raw]
Subject: 2.6.13.4: 'find' complained about sysfs

Hi folks,

When I ran 'find /sys -name modalias' I got an error
message on stderr saying

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

uname -a:
Linux pluto 2.6.13.4 #1 Sun Oct 16 22:41:26 CEST 2005 x86_64 GNU/Linux


Regards

Harri


Attachments:
signature.asc (256.00 B)
OpenPGP digital signature

2005-10-20 18:58:32

by Dave Jones

[permalink] [raw]
Subject: Re: 2.6.13.4: 'find' complained about sysfs

On Thu, Oct 20, 2005 at 08:41:45PM +0200, Harald Dunkel wrote:
> Hi folks,
>
> When I ran 'find /sys -name modalias' I got an error
> message on stderr saying
>
> find: WARNING: Hard link count is wrong for /sys/devices: 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.

This has been around for a while. It's very likely this..

(14:56:22:davej@nwo:~)$ ll /sys/devices/system/
total 0
drwxr-xr-x 3 root root 0 Oct 20 10:09 acpi/
drwxr-xr-x 6 root root 0 Oct 20 10:08 cpu/
drwxr-xr-x 3 root root 0 Oct 20 10:08 i8237/
drwxr-xr-x 3 root root 0 Oct 20 10:08 i8259/
drwxr-xr-x 5 root root 0 Oct 20 10:08 ioapic/
drwxr-xr-x 3 root root 0 Oct 20 10:08 irqrouter/
drwxr-xr-x 3 root root 0 Oct 20 10:08 lapic/
drwxr-xr-x 3 root root 0 Oct 20 10:09 lapic_nmi/
drwxr-xr-x 6 root root 0 Oct 20 10:08 machinecheck/
drwxr-xr-x 3 root root 0 Oct 20 10:08 node/
drwxr-xr-x 3 root root 0 Oct 20 10:08 timer/
drwxr-xr-x 3 root root 0 Oct 20 10:08 timer/ <---- Oops.
(14:56:24:davej@nwo:~)$


Dave

2005-10-20 19:35:28

by linux-os (Dick Johnson)

[permalink] [raw]
Subject: Re: 2.6.13.4: 'find' complained about sysfs


On Thu, 20 Oct 2005, Harald Dunkel wrote:

> Hi folks,
>
> When I ran 'find /sys -name modalias' I got an error
> message on stderr saying
>
> find: WARNING: Hard link count is wrong for /sys/devices: 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.
>
> uname -a:
> Linux pluto 2.6.13.4 #1 Sun Oct 16 22:41:26 CEST 2005 x86_64 GNU/Linux
>
>
> Regards
>
> Harri
>

Works here, same kernel version, GNU find version 4.1.7.

Script started on Thu 20 Oct 2005 03:31:28 PM EDT
[root@chaos /]# find /sys -name "modalias"
/sys/devices/pci0000:00/0000:00:1f.5/modalias
/sys/devices/pci0000:00/0000:00:1f.3/modalias
/sys/devices/pci0000:00/0000:00:1f.2/modalias
/sys/devices/pci0000:00/0000:00:1f.1/modalias
/sys/devices/pci0000:00/0000:00:1f.0/modalias
/sys/devices/pci0000:00/0000:00:1e.0/0000:02:08.0/modalias
/sys/devices/pci0000:00/0000:00:1e.0/0000:02:07.0/modalias
/sys/devices/pci0000:00/0000:00:1e.0/0000:02:03.0/modalias
/sys/devices/pci0000:00/0000:00:1e.0/0000:02:01.0/modalias
/sys/devices/pci0000:00/0000:00:1e.0/0000:02:00.0/modalias
/sys/devices/pci0000:00/0000:00:1e.0/modalias
/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-0:1.0/modalias
/sys/devices/pci0000:00/0000:00:1d.7/modalias
/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-0:1.0/modalias
/sys/devices/pci0000:00/0000:00:1d.3/modalias
/sys/devices/pci0000:00/0000:00:1d.2/usb4/4-0:1.0/modalias
/sys/devices/pci0000:00/0000:00:1d.2/modalias
/sys/devices/pci0000:00/0000:00:1d.1/usb3/3-0:1.0/modalias
/sys/devices/pci0000:00/0000:00:1d.1/modalias
/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-0:1.0/modalias
/sys/devices/pci0000:00/0000:00:1d.0/modalias
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/modalias
/sys/devices/pci0000:00/0000:00:01.0/modalias
/sys/devices/pci0000:00/0000:00:00.0/modalias
/sys/devices/platform/i8042/serio1/modalias
/sys/devices/platform/i8042/serio0/modalias
[root@chaos /]# exit

Script done on Thu 20 Oct 2005 03:31:56 PM EDT

Cheers,
Dick Johnson
Penguin : Linux version 2.6.13.4 on an i686 machine (5589.55 BogoMips).
Warning : 98.36% of all statistics are fiction.
.

****************************************************************
The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to [email protected] - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.

2005-10-20 22:16:57

by Grant Coady

[permalink] [raw]
Subject: Re: 2.6.13.4: 'find' complained about sysfs

Harald Dunkel wrote:
> Hi folks,
>
> When I ran 'find /sys -name modalias' I got an error
> message on stderr saying
>
> find: WARNING: Hard link count is wrong for /sys/devices: 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.
>
> uname -a:
> Linux pluto 2.6.13.4 #1 Sun Oct 16 22:41:26 CEST 2005 x86_64 GNU/Linux
>
grant@sempro:~$ find /sys -name modalias
/sys/devices/pci0000:00/0000:00:11.5/modalias
/sys/devices/pci0000:00/0000:00:11.0/modalias
/sys/devices/pci0000:00/0000:00:10.4/usb1/1-0:1.0/modalias
/sys/devices/pci0000:00/0000:00:10.4/modalias
/sys/devices/pci0000:00/0000:00:10.2/usb3/3-0:1.0/modalias
/sys/devices/pci0000:00/0000:00:10.2/modalias
/sys/devices/pci0000:00/0000:00:10.0/usb2/2-1/2-1:1.0/modalias
/sys/devices/pci0000:00/0000:00:10.0/usb2/2-0:1.0/modalias
/sys/devices/pci0000:00/0000:00:10.0/modalias
/sys/devices/pci0000:00/0000:00:0f.1/modalias
/sys/devices/pci0000:00/0000:00:0f.0/modalias
/sys/devices/pci0000:00/0000:00:07.0/modalias
/sys/devices/pci0000:00/0000:00:06.0/modalias
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/modalias
/sys/devices/pci0000:00/0000:00:01.0/modalias
/sys/devices/pci0000:00/0000:00:00.0/modalias
/sys/devices/platform/i8042/serio1/modalias
/sys/devices/platform/i8042/serio0/modalias
grant@sempro:~$ uname -r
2.6.13.4a

and another:

grant@tosh:~$ find /sys -name modalias
/sys/devices/pci0000:00/0000:00:0c.0/modalias
/sys/devices/pci0000:00/0000:00:0b.0/0000:02:00.0/modalias
/sys/devices/pci0000:00/0000:00:0b.0/modalias
/sys/devices/pci0000:00/0000:00:07.0/modalias
/sys/devices/pci0000:00/0000:00:05.3/modalias
/sys/devices/pci0000:00/0000:00:05.2/usb1/1-0:1.0/modalias
/sys/devices/pci0000:00/0000:00:05.2/modalias
/sys/devices/pci0000:00/0000:00:05.1/modalias
/sys/devices/pci0000:00/0000:00:05.0/modalias
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/modalias
/sys/devices/pci0000:00/0000:00:01.0/modalias
/sys/devices/pci0000:00/0000:00:00.0/modalias
/sys/devices/platform/i8042/serio1/modalias
/sys/devices/platform/i8042/serio0/modalias
grant@tosh:~$ uname -r
2.6.13.4a

Sorry no clue from me :(
Grant.

2005-10-21 00:29:55

by Greg KH

[permalink] [raw]
Subject: Re: 2.6.13.4: 'find' complained about sysfs

On Thu, Oct 20, 2005 at 02:58:19PM -0400, Dave Jones wrote:
> On Thu, Oct 20, 2005 at 08:41:45PM +0200, Harald Dunkel wrote:
> > Hi folks,
> >
> > When I ran 'find /sys -name modalias' I got an error
> > message on stderr saying
> >
> > find: WARNING: Hard link count is wrong for /sys/devices: 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.
>
> This has been around for a while. It's very likely this..
>
> (14:56:22:davej@nwo:~)$ ll /sys/devices/system/
> total 0
> drwxr-xr-x 3 root root 0 Oct 20 10:09 acpi/
> drwxr-xr-x 6 root root 0 Oct 20 10:08 cpu/
> drwxr-xr-x 3 root root 0 Oct 20 10:08 i8237/
> drwxr-xr-x 3 root root 0 Oct 20 10:08 i8259/
> drwxr-xr-x 5 root root 0 Oct 20 10:08 ioapic/
> drwxr-xr-x 3 root root 0 Oct 20 10:08 irqrouter/
> drwxr-xr-x 3 root root 0 Oct 20 10:08 lapic/
> drwxr-xr-x 3 root root 0 Oct 20 10:09 lapic_nmi/
> drwxr-xr-x 6 root root 0 Oct 20 10:08 machinecheck/
> drwxr-xr-x 3 root root 0 Oct 20 10:08 node/
> drwxr-xr-x 3 root root 0 Oct 20 10:08 timer/
> drwxr-xr-x 3 root root 0 Oct 20 10:08 timer/ <---- Oops.

A fix for this is in the -mm tree.

thanks,

greg k-h