From: Masaki Kanno Subject: [PATCH] Fix blktap script Date: Thu, 24 Jan 2008 15:53:54 +0900 Message-ID: <10C85E55E281FDkanno.masaki@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, I believe that we should use fatal() in xen-hotplug-common.sh if the file does not exist. Signed-off-by: Masaki Kanno Best regards, Kan diff -r 1c826ea72a80 tools/examples/blktap --- a/tools/examples/blktap Wed Jan 23 15:42:52 2008 +0000 +++ b/tools/examples/blktap Thu Jan 24 14:57:48 2008 +0900 @@ -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