From: Jeremy Katz Subject: Re: [PATCH] support udev or hotplug based on the system [2/3] Date: Thu, 06 Oct 2005 15:57:04 -0400 Message-ID: <1128628544.12602.28.camel@bree.local.net> References: <1128612421.12602.20.camel@bree.local.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-dPIKez++y0z/r4VdWh4C" Return-path: Resent-Message-Id: <200510061957.j96JvZ1D024863@devserv.devel.redhat.com> In-Reply-To: <1128612421.12602.20.camel@bree.local.net> Resent-To: "xen-devel@lists.xensource.com" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Katz List-Id: xen-devel@lists.xenproject.org --=-dPIKez++y0z/r4VdWh4C Content-Type: text/plain Content-Transfer-Encoding: 7bit On Thu, 2005-10-06 at 11:27 -0400, Jeremy Katz wrote: > Add udev rules that map similar to the hotplug agent. Based off of what > Chris Bainbridge posted the end of last week but doing things as > directly as possible. > > Signed-off-by: Jeremy Katz Wrong patch was attached (3/3 was attached to this mail) Jeremy --=-dPIKez++y0z/r4VdWh4C Content-Disposition: attachment; filename=xen-udev-rules.patch Content-Type: text/x-patch; name=xen-udev-rules.patch; charset=utf-8 Content-Transfer-Encoding: 7bit # HG changeset patch # User katzj@bree.local.net # Node ID d62a9e2969e3bcb9e32b65cbb14f3fafcaf68f00 # Parent b955507c41895ace00ef82f074e9366fd17eae97 add udev rules file which does the same thing as the hotplug agent diff -r b955507c4189 -r d62a9e2969e3 tools/examples/xen-backend.rules --- /dev/null Thu Oct 6 03:30:56 2005 +++ b/tools/examples/xen-backend.rules Thu Oct 6 03:31:41 2005 @@ -0,0 +1,4 @@ +SUBSYSTEM=="xen-backend", KERNEL=="vbd*", ACTION=="add", RUN+="/etc/xen/scripts/block bind" +SUBSYSTEM=="xen-backend", KERNEL=="vbd*", ACTION=="remove", RUN+="/etc/xen/scripts/block unbind" +SUBSYSTEM=="xen-backend", KERNEL=="vif*", ENV{PHYSDEVDRIVER}=="vif", ACTION=="online", RUN+="$env{script} up" +SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/usr/bin/xenstore-rm $env{XENBUS_PATH}" --=-dPIKez++y0z/r4VdWh4C Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-dPIKez++y0z/r4VdWh4C--