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

[Xen-changelog] [xen-unstable] block scripts: use fatal() in xen-hotplug

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] block scripts: use fatal() in xen-hotplug-common.sh if the file does not exist.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 24 Jan 2008 07:10:22 -0800
Delivery-date: Thu, 24 Jan 2008 07:12:20 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1201185686 0
# Node ID 31adb5c972d03e45cb746cd2305126ea2571282f
# Parent  6269a3ce7b830f6903a61e1116331590b47f7e99
block scripts: use fatal() in xen-hotplug-common.sh if the file does not exist.
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/examples/blktap |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -r 6269a3ce7b83 -r 31adb5c972d0 tools/examples/blktap
--- a/tools/examples/blktap     Thu Jan 24 14:40:35 2008 +0000
+++ b/tools/examples/blktap     Thu Jan 24 14:41:26 2008 +0000
@@ -71,9 +71,9 @@ fi
 fi
 # some versions of readlink cannot be passed a regular file
 if [ -L "$p" ]; then
-    file=$(readlink -f "$p") || ebusy "$p link does not exist."
+    file=$(readlink -f "$p") || fatal "$p link does not exist."
 else
-    [ -f "$p" ] || { ebusy "$p file does not exist."; }
+    [ -f "$p" ] || { fatal "$p file does not exist."; }
     file="$p"
 fi
 
@@ -85,7 +85,7 @@ fi
 
 if [ "$command" = 'add' ]
 then
-    [ -e "$file" ] || { ebusy $file does not exist; }
+    [ -e "$file" ] || { fatal $file does not exist; }
     success
 fi
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] block scripts: use fatal() in xen-hotplug-common.sh if the file does not exist., Xen patchbot-unstable <=