linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Hotplug on PPC4xx
@ 2009-04-06 22:20 Sean MacLennan
  2009-04-07 23:27 ` Sean MacLennan
  0 siblings, 1 reply; 3+ messages in thread
From: Sean MacLennan @ 2009-04-06 22:20 UTC (permalink / raw)
  To: linuxppc-dev

I am trying to run the /sbin/hotplug from the kernel and it doesn't
work. Has anybody got it running?

I know I am being a bit vague, but I don't want to write a long email
and find out that it is a know problem ;)

Basically, I want to automount SD cards and USB keys. So if anybody
knows a better way than hotplug, let me know. I would rather not have
to setup udev/hald/dbus.

Cheers,
   Sean

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Hotplug on PPC4xx
  2009-04-06 22:20 Hotplug on PPC4xx Sean MacLennan
@ 2009-04-07 23:27 ` Sean MacLennan
  2009-04-08  0:27   ` Michael Ellerman
  0 siblings, 1 reply; 3+ messages in thread
From: Sean MacLennan @ 2009-04-07 23:27 UTC (permalink / raw)
  To: linuxppc-dev

On Mon, 6 Apr 2009 18:20:23 -0400
"Sean MacLennan" <sean.maclennan@ottawa.kanatek.ca> wrote:

> I am trying to run the /sbin/hotplug from the kernel and it doesn't
> work. Has anybody got it running?

I looked into it some more. It turns out that the env pointers are
freed before they are copied.

In kobject_uevent_env() if I change the line that calls the helper from
UMH_NO_WAIT to UMH_WAIT_EXEC, then it works... but probably at a loss
of performance.

		retval = call_usermodehelper(argv[0], argv,
					     env->envp, UMH_WAIT_EXEC);

Any other ideas?

Cheers,
   Sean

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Hotplug on PPC4xx
  2009-04-07 23:27 ` Sean MacLennan
@ 2009-04-08  0:27   ` Michael Ellerman
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Ellerman @ 2009-04-08  0:27 UTC (permalink / raw)
  To: Sean MacLennan; +Cc: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 668 bytes --]

On Tue, 2009-04-07 at 19:27 -0400, Sean MacLennan wrote:
> On Mon, 6 Apr 2009 18:20:23 -0400
> "Sean MacLennan" <sean.maclennan@ottawa.kanatek.ca> wrote:
> 
> > I am trying to run the /sbin/hotplug from the kernel and it doesn't
> > work. Has anybody got it running?
> 
> I looked into it some more. It turns out that the env pointers are
> freed before they are copied.

That sounds like a bug?

cheers

-- 
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-08  0:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-06 22:20 Hotplug on PPC4xx Sean MacLennan
2009-04-07 23:27 ` Sean MacLennan
2009-04-08  0:27   ` Michael Ellerman

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).