* [patch 2.5.48] drivers/base/hotplug.c, fix $DEVPATH
@ 2002-11-21 1:19 David Brownell
2002-11-21 1:19 ` Patrick Mochel
2002-11-24 7:08 ` Greg KH
0 siblings, 2 replies; 3+ messages in thread
From: David Brownell @ 2002-11-21 1:19 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 123 bytes --]
Hotplug agents couldn't use /sys/$DEVPATH after /sys/root
morphed into /sys/devices ... now they can do it again.
- Dave
[-- Attachment #2: core-1120.patch --]
[-- Type: text/plain, Size: 883 bytes --]
--- ./drivers/base-dist/hotplug.c Tue Nov 19 18:24:36 2002
+++ ./drivers/base/hotplug.c Wed Nov 20 09:15:05 2002
@@ -35,6 +35,8 @@
#define BUFFER_SIZE 1024 /* should be enough memory for the env */
#define NUM_ENVP 32 /* number of env pointers */
+static char prefix [] = "devices"; /* /sys/devices/... */
+
static int do_hotplug (struct device *dev, char *argv1, const char *action,
int (* hotplug) (struct device *, char **, int, char *, int))
{
@@ -72,7 +74,7 @@
}
dev_length = get_devpath_length (dev);
- dev_length += strlen("root");
+ dev_length += strlen(prefix);
dev_path = kmalloc (dev_length, GFP_KERNEL);
if (!dev_path) {
kfree (buffer);
@@ -80,7 +82,7 @@
return -ENOMEM;
}
memset (dev_path, 0x00, dev_length);
- strcpy (dev_path, "root");
+ strcpy (dev_path, prefix);
fill_devpath (dev, dev_path, dev_length);
argv [0] = hotplug_path;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch 2.5.48] drivers/base/hotplug.c, fix $DEVPATH
2002-11-21 1:19 [patch 2.5.48] drivers/base/hotplug.c, fix $DEVPATH David Brownell
@ 2002-11-21 1:19 ` Patrick Mochel
2002-11-24 7:08 ` Greg KH
1 sibling, 0 replies; 3+ messages in thread
From: Patrick Mochel @ 2002-11-21 1:19 UTC (permalink / raw)
To: linux-hotplug
On Wed, 20 Nov 2002, David Brownell wrote:
> Hotplug agents couldn't use /sys/$DEVPATH after /sys/root
> morphed into /sys/devices ... now they can do it again.
It should always be "devices" from now on. Sorry about not fixing that up
when I changed it...
-pat
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch 2.5.48] drivers/base/hotplug.c, fix $DEVPATH
2002-11-21 1:19 [patch 2.5.48] drivers/base/hotplug.c, fix $DEVPATH David Brownell
2002-11-21 1:19 ` Patrick Mochel
@ 2002-11-24 7:08 ` Greg KH
1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2002-11-24 7:08 UTC (permalink / raw)
To: linux-hotplug
On Wed, Nov 20, 2002 at 05:19:11PM -0800, David Brownell wrote:
> Hotplug agents couldn't use /sys/$DEVPATH after /sys/root
> morphed into /sys/devices ... now they can do it again.
Applied, thanks.
greg k-h
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-24 7:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-21 1:19 [patch 2.5.48] drivers/base/hotplug.c, fix $DEVPATH David Brownell
2002-11-21 1:19 ` Patrick Mochel
2002-11-24 7:08 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).