All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Yu Zhiguo <yuzg@cn.fujitsu.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Keir Fraser <keir.fraser@eu.citrix.com>
Subject: Re: [PATCH] xencommons: modprobe xenfs if it not be loaded
Date: Mon, 21 Jun 2010 10:46:01 +0100	[thread overview]
Message-ID: <4C1F34D9.4000006@goop.org> (raw)
In-Reply-To: <4C1C7B88.1000907@cn.fujitsu.com>

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

  reply	other threads:[~2010-06-21  9:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C1F34D9.4000006@goop.org \
    --to=jeremy@goop.org \
    --cc=keir.fraser@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=yuzg@cn.fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.