* [PATCH] xencommons: modprobe xenfs if it not be loaded
@ 2010-06-19 7:39 Yu Zhiguo
2010-06-19 8:10 ` Yu Zhiguo
0 siblings, 1 reply; 12+ messages in thread
From: Yu Zhiguo @ 2010-06-19 7:39 UTC (permalink / raw)
To: Keir Fraser, xen-devel@lists.xensource.com
If xenfs is compiled as a module, now cannot complete
'service xencommons start', modprobe xenfs can fix it.
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
diff -r 659e4b69d26b -r f6b44890c298 tools/hotplug/Linux/init.d/xencommons
--- a/tools/hotplug/Linux/init.d/xencommons Sat Jun 19 22:24:09 2010 +0800
+++ b/tools/hotplug/Linux/init.d/xencommons Sat Jun 19 23:43:10 2010 +0800
@@ -24,16 +24,21 @@
XENCONSOLED_PIDFILE=/var/run/xenconsoled.pid
shopt -s extglob
-if test "x$1" = xstart && \
- test -d /proc/xen && \
- ! test -d /proc/xen/capabilities && \
- grep ' xenfs$' /proc/filesystems >/dev/null && \
- ! grep '^xenfs ' /proc/mounts >/dev/null;
-then
- mount -t xenfs xenfs /proc/xen
+if test "x$1" = xstart; then
+ if ! grep ' xenfs$' /proc/filesystems >/dev/null; then
+ test -x /sbin/modprobe && /sbin/modprobe xenfs
+ fi
+ if test -d /proc/xen && \
+ ! test -d /proc/xen/capabilities && \
+ grep ' xenfs$' /proc/filesystems >/dev/null && \
+ ! grep '^xenfs ' /proc/mounts >/dev/null;
+ then
+ mount -t xenfs xenfs /proc/xen
+ fi
fi
-if ! grep -q "control_d" /proc/xen/capabilities ; then
+if ! test -e /proc/xen/capabilities || \
+ ! grep -q "control_d" /proc/xen/capabilities ; then
exit 0
fi
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] xencommons: modprobe xenfs if it not be loaded
2010-06-19 7:39 [PATCH] xencommons: modprobe xenfs if it not be loaded Yu Zhiguo
@ 2010-06-19 8:10 ` Yu Zhiguo
2010-06-21 9:46 ` Jeremy Fitzhardinge
0 siblings, 1 reply; 12+ messages in thread
From: Yu Zhiguo @ 2010-06-19 8:10 UTC (permalink / raw)
To: Keir Fraser, xen-devel@lists.xensource.com
Do a small fix in order to be compatible with the old Dom0 kernel
which has no xenfs.ko.
-----------
If xenfs is compiled as a module, now cannot complete
'service xencommons start', modprobe xenfs can fix it.
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
diff -r b9c541d9c138 -r 96978e701b26 tools/hotplug/Linux/init.d/xencommons
--- a/tools/hotplug/Linux/init.d/xencommons Tue Jun 15 13:27:14 2010 +0100
+++ b/tools/hotplug/Linux/init.d/xencommons Sun Jun 20 00:11:45 2010 +0800
@@ -24,16 +24,21 @@
XENCONSOLED_PIDFILE=/var/run/xenconsoled.pid
shopt -s extglob
-if test "x$1" = xstart && \
- test -d /proc/xen && \
- ! test -d /proc/xen/capabilities && \
- grep ' xenfs$' /proc/filesystems >/dev/null && \
- ! grep '^xenfs ' /proc/mounts >/dev/null;
-then
- mount -t xenfs xenfs /proc/xen
+if test "x$1" = xstart; then
+ if ! grep ' xenfs$' /proc/filesystems >/dev/null; then
+ test -x /sbin/modprobe && /sbin/modprobe xenfs 2>/dev/null
+ fi
+ if test -d /proc/xen && \
+ ! test -d /proc/xen/capabilities && \
+ grep ' xenfs$' /proc/filesystems >/dev/null && \
+ ! grep '^xenfs ' /proc/mounts >/dev/null;
+ then
+ mount -t xenfs xenfs /proc/xen
+ fi
fi
-if ! grep -q "control_d" /proc/xen/capabilities ; then
+if ! test -e /proc/xen/capabilities || \
+ ! grep -q "control_d" /proc/xen/capabilities ; then
exit 0
fi
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] xencommons: modprobe xenfs if it not be loaded
2010-06-19 8:10 ` Yu Zhiguo
@ 2010-06-21 9:46 ` Jeremy Fitzhardinge
2010-06-21 14:05 ` Ian Jackson
2010-06-22 1:18 ` [PATCH] xencommons: mount xenfs directly if xenfs " Yu Zhiguo
0 siblings, 2 replies; 12+ messages in thread
From: Jeremy Fitzhardinge @ 2010-06-21 9:46 UTC (permalink / raw)
To: Yu Zhiguo; +Cc: xen-devel@lists.xensource.com, Keir Fraser
On 06/19/2010 09:10 AM, Yu Zhiguo wrote:
> Do a small fix in order to be compatible with the old Dom0 kernel
> which has no xenfs.ko.
>
> -----------
>
> If xenfs is compiled as a module, now cannot complete
> 'service xencommons start', modprobe xenfs can fix it.
>
It should just be sufficient to explicitly mount /proc/xen, which will
trigger a modprobe if necessary.
J
> Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
>
> diff -r b9c541d9c138 -r 96978e701b26 tools/hotplug/Linux/init.d/xencommons
> --- a/tools/hotplug/Linux/init.d/xencommons Tue Jun 15 13:27:14 2010 +0100
> +++ b/tools/hotplug/Linux/init.d/xencommons Sun Jun 20 00:11:45 2010 +0800
> @@ -24,16 +24,21 @@
> XENCONSOLED_PIDFILE=/var/run/xenconsoled.pid
> shopt -s extglob
>
> -if test "x$1" = xstart && \
> - test -d /proc/xen && \
> - ! test -d /proc/xen/capabilities && \
> - grep ' xenfs$' /proc/filesystems >/dev/null && \
> - ! grep '^xenfs ' /proc/mounts >/dev/null;
> -then
> - mount -t xenfs xenfs /proc/xen
> +if test "x$1" = xstart; then
> + if ! grep ' xenfs$' /proc/filesystems >/dev/null; then
> + test -x /sbin/modprobe && /sbin/modprobe xenfs 2>/dev/null
> + fi
> + if test -d /proc/xen && \
> + ! test -d /proc/xen/capabilities && \
> + grep ' xenfs$' /proc/filesystems >/dev/null && \
> + ! grep '^xenfs ' /proc/mounts >/dev/null;
> + then
> + mount -t xenfs xenfs /proc/xen
> + fi
> fi
>
> -if ! grep -q "control_d" /proc/xen/capabilities ; then
> +if ! test -e /proc/xen/capabilities || \
> + ! grep -q "control_d" /proc/xen/capabilities ; then
> exit 0
> fi
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH] xencommons: modprobe xenfs if it not be loaded
2010-06-21 9:46 ` Jeremy Fitzhardinge
@ 2010-06-21 14:05 ` Ian Jackson
2010-06-21 14:45 ` Jeremy Fitzhardinge
2010-06-21 17:28 ` Keir Fraser
2010-06-22 1:18 ` [PATCH] xencommons: mount xenfs directly if xenfs " Yu Zhiguo
1 sibling, 2 replies; 12+ messages in thread
From: Ian Jackson @ 2010-06-21 14:05 UTC (permalink / raw)
To: Jeremy Fitzhardinge; +Cc: xen-devel@lists.xensource.com, Keir Fraser, Yu Zhiguo
Jeremy Fitzhardinge writes ("Re: [Xen-devel] [PATCH] xencommons: modprobe xenfs if it not be loaded"):
> It should just be sufficient to explicitly mount /proc/xen, which will
> trigger a modprobe if necessary.
That sounds like a Nak of the patch to me. Unfortunately it has
already been applied (21641).
Ian.
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH] xencommons: modprobe xenfs if it not be loaded
2010-06-21 14:05 ` Ian Jackson
@ 2010-06-21 14:45 ` Jeremy Fitzhardinge
2010-06-21 16:31 ` Ian Jackson
2010-06-21 17:29 ` Keir Fraser
2010-06-21 17:28 ` Keir Fraser
1 sibling, 2 replies; 12+ messages in thread
From: Jeremy Fitzhardinge @ 2010-06-21 14:45 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel@lists.xensource.com, Keir Fraser, Yu Zhiguo
On 06/21/2010 03:05 PM, Ian Jackson wrote:
> Jeremy Fitzhardinge writes ("Re: [Xen-devel] [PATCH] xencommons: modprobe xenfs if it not be loaded"):
>
>> It should just be sufficient to explicitly mount /proc/xen, which will
>> trigger a modprobe if necessary.
>>
> That sounds like a Nak of the patch to me. Unfortunately it has
> already been applied (21641).
>
Is that tangled up in staging?
J
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH] xencommons: modprobe xenfs if it not be loaded
2010-06-21 14:05 ` Ian Jackson
2010-06-21 14:45 ` Jeremy Fitzhardinge
@ 2010-06-21 17:28 ` Keir Fraser
2010-06-21 20:13 ` Jeremy Fitzhardinge
1 sibling, 1 reply; 12+ messages in thread
From: Keir Fraser @ 2010-06-21 17:28 UTC (permalink / raw)
To: Ian Jackson, Jeremy Fitzhardinge; +Cc: xen-devel@lists.xensource.com, Yu Zhiguo
On 21/06/2010 15:05, "Ian Jackson" <Ian.Jackson@eu.citrix.com> wrote:
> Jeremy Fitzhardinge writes ("Re: [Xen-devel] [PATCH] xencommons: modprobe
> xenfs if it not be loaded"):
>> It should just be sufficient to explicitly mount /proc/xen, which will
>> trigger a modprobe if necessary.
>
> That sounds like a Nak of the patch to me. Unfortunately it has
> already been applied (21641).
I can revert it.
Should I leave tools patches unapplied for a week, perhaps?
-- Keir
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH] xencommons: modprobe xenfs if it not be loaded
2010-06-21 17:28 ` Keir Fraser
@ 2010-06-21 20:13 ` Jeremy Fitzhardinge
2010-06-21 20:33 ` Keir Fraser
0 siblings, 1 reply; 12+ messages in thread
From: Jeremy Fitzhardinge @ 2010-06-21 20:13 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel@lists.xensource.com, Ian Jackson, Yu Zhiguo
On 06/21/2010 06:28 PM, Keir Fraser wrote:
> On 21/06/2010 15:05, "Ian Jackson" <Ian.Jackson@eu.citrix.com> wrote:
>
>
>> Jeremy Fitzhardinge writes ("Re: [Xen-devel] [PATCH] xencommons: modprobe
>> xenfs if it not be loaded"):
>>
>>> It should just be sufficient to explicitly mount /proc/xen, which will
>>> trigger a modprobe if necessary.
>>>
>> That sounds like a Nak of the patch to me. Unfortunately it has
>> already been applied (21641).
>>
> I can revert it.
>
I think so.
> Should I leave tools patches unapplied for a week, perhaps?
>
You mean the policy is that if a patch is not interesting enough to draw
comment, you'll accept it by default after a week? What about waiting
until there are either positive or negative comments, and suggesting the
poster ping if the patch is uncommented on after a day or two?
J
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH] xencommons: modprobe xenfs if it not be loaded
2010-06-21 20:13 ` Jeremy Fitzhardinge
@ 2010-06-21 20:33 ` Keir Fraser
0 siblings, 0 replies; 12+ messages in thread
From: Keir Fraser @ 2010-06-21 20:33 UTC (permalink / raw)
To: Jeremy Fitzhardinge; +Cc: xen-devel@lists.xensource.com, Ian Jackson, Yu Zhiguo
On 21/06/2010 21:13, "Jeremy Fitzhardinge" <jeremy@goop.org> wrote:
>> Should I leave tools patches unapplied for a week, perhaps?
>
> You mean the policy is that if a patch is not interesting enough to draw
> comment, you'll accept it by default after a week? What about waiting
> until there are either positive or negative comments, and suggesting the
> poster ping if the patch is uncommented on after a day or two?
Well, possibly. I think that will leave a lot of patches unapplied. Perhaps
that is for the best, of course.
-- Keir
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] xencommons: mount xenfs directly if xenfs it not be loaded
2010-06-21 9:46 ` Jeremy Fitzhardinge
2010-06-21 14:05 ` Ian Jackson
@ 2010-06-22 1:18 ` Yu Zhiguo
2010-06-22 13:47 ` Ian Jackson
1 sibling, 1 reply; 12+ messages in thread
From: Yu Zhiguo @ 2010-06-22 1:18 UTC (permalink / raw)
To: Jeremy Fitzhardinge; +Cc: xen-devel@lists.xensource.com, Keir Fraser
Hi Jeremy
Jeremy Fitzhardinge wrote:
>>
>
> It should just be sufficient to explicitly mount /proc/xen, which will
> trigger a modprobe if necessary.
>
> J
>
OK, I fixed it, new patch is here.
Just deleted check for xenfs support before mount xenfs.
------------------
If xenfs is compiled as a module, now cannot complete
'service xencommons start', mount xenfs directly can fix it,
it can trigger modprobe xenfs.
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
diff -r bd3bf925f4ce -r 6c8c32876b30 tools/hotplug/Linux/init.d/xencommons
--- a/tools/hotplug/Linux/init.d/xencommons Tue Jun 22 17:02:30 2010 +0800
+++ b/tools/hotplug/Linux/init.d/xencommons Tue Jun 22 17:21:44 2010 +0800
@@ -27,7 +27,6 @@
if test "x$1" = xstart && \
test -d /proc/xen && \
! test -d /proc/xen/capabilities && \
- grep ' xenfs$' /proc/filesystems >/dev/null && \
! grep '^xenfs ' /proc/mounts >/dev/null;
then
mount -t xenfs xenfs /proc/xen
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2010-06-22 13:47 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-19 7:39 [PATCH] xencommons: modprobe xenfs if it not be loaded Yu Zhiguo
2010-06-19 8:10 ` Yu Zhiguo
2010-06-21 9:46 ` Jeremy Fitzhardinge
2010-06-21 14:05 ` Ian Jackson
2010-06-21 14:45 ` Jeremy Fitzhardinge
2010-06-21 16:31 ` Ian Jackson
2010-06-21 17:29 ` Keir Fraser
2010-06-21 17:28 ` Keir Fraser
2010-06-21 20:13 ` Jeremy Fitzhardinge
2010-06-21 20:33 ` Keir Fraser
2010-06-22 1:18 ` [PATCH] xencommons: mount xenfs directly if xenfs " Yu Zhiguo
2010-06-22 13:47 ` Ian Jackson
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).