From: "James (song wei)" <jsong@novell.com>
To: xen-devel@lists.xensource.com
Subject: a little fix of blktap2 in xen-hotplug-cleanup
Date: Wed, 7 Apr 2010 23:56:34 -0700 (PDT) [thread overview]
Message-ID: <28174878.post@talk.nabble.com> (raw)
a little fix for blktap2 in xen-hotplug-cleanup
-James (Song Wei)
Signed-off-by: James (Song Wei) <jsong@novell.com>
diff -r 3376c90960e8 tools/hotplug/Linux/xen-hotplug-cleanup
--- a/tools/hotplug/Linux/xen-hotplug-cleanup Wed Apr 07 10:17:27 2010
+0100
+++ b/tools/hotplug/Linux/xen-hotplug-cleanup Thu Apr 08 14:51:12 2010
+0800
@@ -21,7 +21,7 @@
# if the vm path does not exist and the device class is 'vbd' then we may
have
# a tap2 device
- if [ $(xenstore-read "$vm_dev" 2>/dev/null) != "" ] \
+ if [ "$(xenstore-read "$vm_dev" 2>/dev/null)" != "" ] \
&& [ "${path_array[1]}" = "vbd" ]; then
vm_dev="$vm/device/tap2/${path_array[3]}"
fi
--
View this message in context: http://old.nabble.com/a-little-fix-of-blktap2--in-xen-hotplug-cleanup-tp28174878p28174878.html
Sent from the Xen - Dev mailing list archive at Nabble.com.
reply other threads:[~2010-04-08 6:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=28174878.post@talk.nabble.com \
--to=jsong@novell.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).