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] Check for presence of hotplug

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Check for presence of hotplug
From: Michael Vrable <mvrable@xxxxxxxxxxx>
Date: Fri, 23 Sep 2005 11:07:41 -0700
Delivery-date: Fri, 23 Sep 2005 18:05:22 +0000
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
Here's a minor patch to check for the presence of hotplug, which is
needed in domain-0 now for block devices to work.

(Hotplug is included with most distributions, but I've been using a
fairly minimal domain-0, which didn't include hotplug.)

This script should be made executable, but I'm not sure this is
reflected in the patch itself...

--Michael Vrable

# HG changeset patch
# User Michael Vrable <mvrable@xxxxxxxxxxx>
# Node ID 99c5c58064bf6c71372b00c4ce73cdbed9bbad40
# Parent  9f50bd7a478fc138578ac95b41f3d306d0f0af4a
Add an install-time check for hotplug.

The hotplug subsystem is currently needed for block devices to work, as
of changeset 6742:e9d01c5dc7b4d6b7cda9ade0d137ddb89bb204cc.  Add a
script to check for the presence of hotplug and warn if it isn't found.

Signed-off-by: Michael Vrable <mvrable@xxxxxxxxxxx>

diff -r 9f50bd7a478f -r 99c5c58064bf tools/check/check_hotplug
--- /dev/null   Fri Sep 23 16:17:22 2005
+++ b/tools/check/check_hotplug Fri Sep 23 18:02:56 2005
@@ -0,0 +1,10 @@
+#!/bin/bash
+# CHECK-INSTALL
+
+function error {
+   echo
+   echo '  *** Check for the hotplug scripts (hotplug) FAILED'
+   exit 1
+}
+
+which hotplug 1>/dev/null 2>&1 || error

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Check for presence of hotplug, Michael Vrable <=