ia64/xen-unstable

changeset 16539:46af6ec3ae4e

Check block file existence.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Dec 05 17:28:59 2007 +0000 (2007-12-05)
parents f0ac46de680c
children 8ba08f2244b2
files tools/examples/block
line diff
     1.1 --- a/tools/examples/block	Wed Dec 05 14:21:00 2007 +0000
     1.2 +++ b/tools/examples/block	Wed Dec 05 17:28:59 2007 +0000
     1.3 @@ -220,6 +220,7 @@ case "$command" in
     1.4          # Canonicalise the file, for sharing check comparison, and the mode
     1.5          # for ease of use here.
     1.6          file=$(readlink -f "$p") || fatal "$p does not exist."
     1.7 +        test -f "$file" || fatal "$file does not exist."
     1.8          mode=$(canonicalise_mode "$mode")
     1.9  
    1.10          claim_lock "block"