WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] correct test for /proc/xen/capabilities in xencommon

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] correct test for /proc/xen/capabilities in xencommons runlevel script
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Fri, 23 Jul 2010 23:05:28 +0200
Delivery-date: Fri, 23 Jul 2010 14:06:24 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1279919130; l=628; s=domk; d=aepfle.de; h=Content-Type:MIME-Version:Subject:To:From:Date:X-RZG-CLASS-ID: X-RZG-AUTH; bh=KIHXij+lzMxk7ffvzgbzyIAiG9A=; b=JX8vtW0PUZoFzUPbNKUXDFO0bi6J9pG4zTpFNnjNxxUVkybVymzfxGnpjeMllERwE/g 4WVVZaMVR/7pB8GueZ96YBQSmwkcY1AOcDlUyRIU0SufMrGPTVhMUyV0EQpAXt7optHZM Ne1vAd/21hwH3/GcikGGeBdlrVWxb3YSmEw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
Correct test for /proc/xen/capabilities
It is a file, not a directory.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

---
 tools/hotplug/Linux/init.d/xencommons |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- xen-unstable.hg-4.1.21836.orig/tools/hotplug/Linux/init.d/xencommons
+++ xen-unstable.hg-4.1.21836/tools/hotplug/Linux/init.d/xencommons
@@ -26,7 +26,7 @@ shopt -s extglob
 
 if test "x$1" = xstart && \
      test -d /proc/xen && \
-   ! test -d /proc/xen/capabilities && \
+   ! test -f /proc/xen/capabilities && \
    ! grep '^xenfs ' /proc/mounts >/dev/null;
 then
        mount -t xenfs xenfs /proc/xen

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] correct test for /proc/xen/capabilities in xencommons runlevel script, Olaf Hering <=