linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix firmware.agent for multiple sysfs mounts
@ 2005-04-27 16:41 Bill Nottingham
  2005-04-28 16:47 ` Marcel Holtmann
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Bill Nottingham @ 2005-04-27 16:41 UTC (permalink / raw)
  To: linux-hotplug

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

Not sure when you'd normally end up with this, but someone
reported it in our bugzilla. Fixes firmware.agent breaking
completely if sysfs is mounted on multiple paths.

Bill

[-- Attachment #2: hotplug-2004_09_23-firmwaresys.patch --]
[-- Type: text/plain, Size: 436 bytes --]

--- hotplug-2004_09_23/etc/hotplug/firmware.agent.foo	2005-04-27 12:37:21.000000000 -0400
+++ hotplug-2004_09_23/etc/hotplug/firmware.agent	2005-04-27 12:37:46.000000000 -0400
@@ -23,7 +23,7 @@
 FIRMWARE_DIR=/lib/firmware
 
 # mountpoint of sysfs
-SYSFS=$(sed -n 's/^.* \([^ ]*\) sysfs .*$/\1/p' /proc/mounts)
+SYSFS=$(awk '$3 == "sysfs" { print $2 ; nextfile }' /proc/mounts)
 
 # use /proc for 2.4 kernels
 if [ "$SYSFS" = "" ]; then

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

* Re: [PATCH] fix firmware.agent for multiple sysfs mounts
  2005-04-27 16:41 [PATCH] fix firmware.agent for multiple sysfs mounts Bill Nottingham
@ 2005-04-28 16:47 ` Marcel Holtmann
  2005-04-28 16:48 ` Bill Nottingham
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2005-04-28 16:47 UTC (permalink / raw)
  To: linux-hotplug

Hi Bill,

> Not sure when you'd normally end up with this, but someone
> reported it in our bugzilla. Fixes firmware.agent breaking
> completely if sysfs is mounted on multiple paths.

I am fine with that patch, but who is mounting sysfs multiple times?

Regards

Marcel




-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id\x105hix
_______________________________________________
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] 5+ messages in thread

* Re: [PATCH] fix firmware.agent for multiple sysfs mounts
  2005-04-27 16:41 [PATCH] fix firmware.agent for multiple sysfs mounts Bill Nottingham
  2005-04-28 16:47 ` Marcel Holtmann
@ 2005-04-28 16:48 ` Bill Nottingham
  2005-04-28 16:50 ` Marco d'Itri
  2005-04-28 20:56 ` Linas Vepstas
  3 siblings, 0 replies; 5+ messages in thread
From: Bill Nottingham @ 2005-04-28 16:48 UTC (permalink / raw)
  To: linux-hotplug

Marcel Holtmann (marcel@holtmann.org) said: 
> > Not sure when you'd normally end up with this, but someone
> > reported it in our bugzilla. Fixes firmware.agent breaking
> > completely if sysfs is mounted on multiple paths.
> 
> I am fine with that patch, but who is mounting sysfs multiple times?

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id\x143066

Apparently showed up for someone with XFS somehow, although I'm
not sure how that would be related. Basically, the sysfs from
the initrd/initramfs couldn't get unmounted due to -EBUSY, and so you
eventually ended up with 2.

Bill


-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id\x105hix
_______________________________________________
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] 5+ messages in thread

* Re: [PATCH] fix firmware.agent for multiple sysfs mounts
  2005-04-27 16:41 [PATCH] fix firmware.agent for multiple sysfs mounts Bill Nottingham
  2005-04-28 16:47 ` Marcel Holtmann
  2005-04-28 16:48 ` Bill Nottingham
@ 2005-04-28 16:50 ` Marco d'Itri
  2005-04-28 20:56 ` Linas Vepstas
  3 siblings, 0 replies; 5+ messages in thread
From: Marco d'Itri @ 2005-04-28 16:50 UTC (permalink / raw)
  To: linux-hotplug

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

On Apr 28, Marcel Holtmann <marcel@holtmann.org> wrote:

> I am fine with that patch, but who is mounting sysfs multiple times?
People with a chroot environment, for a start.

-- 
ciao,
Marco

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [PATCH] fix firmware.agent for multiple sysfs mounts
  2005-04-27 16:41 [PATCH] fix firmware.agent for multiple sysfs mounts Bill Nottingham
                   ` (2 preceding siblings ...)
  2005-04-28 16:50 ` Marco d'Itri
@ 2005-04-28 20:56 ` Linas Vepstas
  3 siblings, 0 replies; 5+ messages in thread
From: Linas Vepstas @ 2005-04-28 20:56 UTC (permalink / raw)
  To: linux-hotplug

On Thu, Apr 28, 2005 at 06:50:41PM +0200, Marco d'Itri was heard to remark:
> On Apr 28, Marcel Holtmann <marcel@holtmann.org> wrote:
> 
> > I am fine with that patch, but who is mounting sysfs multiple times?
> People with a chroot environment, for a start.

linux-vserver too, I guess ??


--linas


-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id\x105hix
_______________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2005-04-28 20:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-27 16:41 [PATCH] fix firmware.agent for multiple sysfs mounts Bill Nottingham
2005-04-28 16:47 ` Marcel Holtmann
2005-04-28 16:48 ` Bill Nottingham
2005-04-28 16:50 ` Marco d'Itri
2005-04-28 20:56 ` Linas Vepstas

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