[Bug 639] "block device is required" on 2.6.31.1 when trying to mount flash device
bugzilla at busybox.net
bugzilla at busybox.net
Wed Feb 24 09:42:04 UTC 2010
https://bugs.busybox.net/show_bug.cgi?id=639
--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com> 2010-02-24 09:42:03 UTC ---
This was just applied to git:
/* Make path point to "subsystem/device_name" */
- if (path[5] == 'b') /* legacy /sys/block? */
+ subsystem_slash_devname = NULL;
+ /* Check for coldplug invocations first */
+ if (strncmp(path, "/sys/block/", 11) == 0) /* legacy case */
path += sizeof("/sys/") - 1;
- else
+ else if (strncmp(path, "/sys/class/", 11) == 0)
path += sizeof("/sys/class/") - 1;
+ else {
+ /* Example of a hotplug invocation:
+ * SUBSYSTEM="block"
+ * DEVPATH="/sys" + "/devices/virtual/mtd/mtd3/mtdblock3"
+ * ("/sys" is added by mdev_main)
+ * - path does not contain subsystem
+ */
+ subsystem_slash_devname = concat_path_file(G.subsystem,
device_name);
+ path = subsystem_slash_devname;
+ }
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list