| To: | xen-devel@xxxxxxxxxxxxxxxxxxx |
|---|---|
| Subject: | [Xen-devel] [PATCH] Allow blktap specification to be a path to a file |
| From: | Ben Guthro <bguthro@xxxxxxxxxxxxxxx> |
| Date: | 2007年8月27日 15:05:22 -0400 |
| Cc: | Josh Nicholas <jnicholas@xxxxxxxxxxxxxxx> |
| Delivery-date: | 2007年8月27日 12:19:07 -0700 |
| Envelope-to: | www-data@xxxxxxxxxxxxxxxxxx |
| 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> |
| Sender: | xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
| User-agent: | Thunderbird 2.0.0.5 (X11/20070719) |
Signed-off-by: Ben Guthro <bguthro@xxxxxxxxxxxxxxx> Signed-off-by: Josh Nicholas <jnicholas@xxxxxxxxxxxxxxx>
diff -r b34eb51bc04c tools/examples/blktap
--- a/tools/examples/blktap Thu Aug 16 19:37:12 2007 -0400
+++ b/tools/examples/blktap Thu Aug 16 19:37:12 2007 -0400
@@ -18,7 +18,12 @@ then
p=${p#*:}
fi
fi
-file=$(readlink -f "$p") || ebusy "$p does not exist."
+if [ -L "$p" ]; then
+ file=$(readlink -f "$p") || ebusy "$p link does not exist."
+else
+ [ -f "$p" ] || { ebusy "$p file does not exist." }
+ $file="$p"
+fi
if [ "$command" = 'add' ]
then
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [Xen-devel] [PATCH] Fix double-free in tapdisk cleanup , Ben Guthro |
|---|---|
| Next by Date: | [Xen-devel] [PATCH] Limit MCG Cap , Ben Guthro |
| Previous by Thread: | [Xen-devel] [PATCH] Fix double-free in tapdisk cleanup , Ben Guthro |
| Next by Thread: | Re: [Xen-devel] [PATCH] Allow blktap specification to be a path to a file , Keir Fraser |
| Indexes: | [Date] [Thread] [Top] [All Lists] |