[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Check block file existence.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1196875739 0
# Node ID 46af6ec3ae4e308387fdcccfeb9300374255e4fc
# Parent  f0ac46de680cc6fe8c91699fdda153b125ae515c
Check block file existence.
Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
---
 tools/examples/block |    1 +
 1 files changed, 1 insertion(+)

diff -r f0ac46de680c -r 46af6ec3ae4e tools/examples/block
--- a/tools/examples/block      Wed Dec 05 14:21:00 2007 +0000
+++ b/tools/examples/block      Wed Dec 05 17:28:59 2007 +0000
@@ -220,6 +220,7 @@ case "$command" in
         # Canonicalise the file, for sharing check comparison, and the mode
         # for ease of use here.
         file=$(readlink -f "$p") || fatal "$p does not exist."
+        test -f "$file" || fatal "$file does not exist."
         mode=$(canonicalise_mode "$mode")
 
         claim_lock "block"

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.