Skip to contentSkip to conversation

wait_for_syfs errors

DISCUSSION Marcel Paulekuhn 3 participants 6 messages Oct 22, 2004 – Oct 23, 2004

lore
Share & tools
lore
#0 lore raw

wait_for_sysfs[7840]: either wait_for_sysfs (udev 040) needs an update to handle the device '/class/i2c-adapter' properly (no device symlink) or the sysfs-support of your device's driver needs to be fixed, please report to <[email protected]>

wait_for_sysfs[12789]: either wait_for_sysfs (udev 040) needs an update to handle the device '/class/sound' properly (class specific file unavailable) or the sysfs-support of your device's driver needs to be fixed, please report to <[email protected]>

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 10 lines · Marcel Paulekuhn

wait_for_sysfs[7840]: either wait_for_sysfs (udev 040) needs an update to handle the device '/class/i2c-adapter' properly (no device symlink) or the sysfs-support of your device's driver needs to be fixed, please report to <[email protected]>

wait_for_sysfs[12789]: either wait_for_sysfs (udev 040) needs an update to handle the device '/class/sound' properly (class specific file unavailable) or the sysfs-support of your device's driver needs to be fixed, please report to <[email protected]>

You are running a -mm kernel, right? There is a bug in there, that causes this.

Thanks,
Kay

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Marcel Paulekuhn

Hm yeah, I am, 2.6.9-mm1.

So there's no other way to fix this than changing kernel? Because I want to keep reiser4-support.

Quoted 7 lines · Kay Sievers

You are running a -mm kernel, right? There is a bug in there, that causes this.

Thanks,
Kay

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#3 lore raw
In reply to Marcel Paulekuhn
Quoted 10 lines · Marcel Paulekuhn

Hm yeah, I am, 2.6.9-mm1.

So there's no other way to fix this than changing kernel? Because I want to keep reiser4-support.

Quoted 3 lines · Kay Sievers

You are running a -mm kernel, right? There is a bug in there, that causes this.

The message is not critical. It just means, that you get (useless) hotplug events for the class itself which should not happen. This will hopefully fixed soon in the -mm tree and will go away.

Kay

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#4 lore raw
In reply to Marcel Paulekuhn
Quoted 7 lines · Kay Sievers
Quoted 6 lines · Marcel Paulekuhn

Hm yeah, I am, 2.6.9-mm1.

So there's no other way to fix this than changing kernel? Because I want to keep reiser4-support.

Quoted 8 lines
Quoted 4 lines · Kay Sievers
Quoted 3 lines

You are running a -mm kernel, right? There is a bug in there, that causes this.

The message is not critical. It just means, that you get (useless) hotplug events for the class itself which should not happen. This will hopefully fixed soon in the -mm tree and will go away.

Actually I just commited that change to the main kernel tree, so we need to fix this up in wait_for_sysfs before we start to get a lot of people complaining :)

thanks,

greg k-h

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#5 lore raw
In reply to Marcel Paulekuhn
Quoted 13 lines · Greg KH
Quoted 12 lines · Kay Sievers
Quoted 10 lines · Marcel Paulekuhn

Hm yeah, I am, 2.6.9-mm1.

So there's no other way to fix this than changing kernel? Because I want to keep reiser4-support.

Quoted 3 lines · Kay Sievers

You are running a -mm kernel, right? There is a bug in there, that causes this.

Quoted 7 lines
Quoted 3 lines

The message is not critical. It just means, that you get (useless) hotplug events for the class itself which should not happen. This will hopefully fixed soon in the -mm tree and will go away.

Actually I just commited that change to the main kernel tree, so we need to fix this up in wait_for_sysfs before we start to get a lot of people complaining :)

Ok, here is the fix. Bad events with no device in the class are now ignored.

Thanks,
Kay

===== wait_for_sysfs.c 1.27 vs edited =====

wait_for_sysfs.c +6 -0
@@ -99,6 +99,12 @@
 		snprintf(filename, SYSFS_PATH_MAX-1, "%s%s", sysfs_mnt_path, devpath);
 		filename[SYSFS_PATH_MAX-1] = '\0';
 
+		/* skip bad events where we get no device for the class */
+		if (strncmp(devpath, "/class/", 7) == 0 && strchr(&devpath[7], '/') == NULL) {
+			dbg("no device name for '%s', bad event", devpath);
+			goto exit;
+		}
+
 		/* open the class device we are called for */
 		class_dev = open_class_device_wait(filename);
 		if (!class_dev) {