diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2007-12-05 17:28:59 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2007-12-05 17:28:59 +0000 |
commit | dc5b64fd6149123af9a1230eb2819a27e505e3a9 (patch) | |
tree | 4490f47d6be8a1f6ff0d88a696f629831ab0ab78 | |
parent | 6941772894b1ffcf029a1a7d9a5b5f72630f6898 (diff) | |
download | xen-dc5b64fd6149123af9a1230eb2819a27e505e3a9.tar.gz xen-dc5b64fd6149123af9a1230eb2819a27e505e3a9.tar.bz2 xen-dc5b64fd6149123af9a1230eb2819a27e505e3a9.zip |
Check block file existence.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
-rw-r--r-- | tools/examples/block | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/examples/block b/tools/examples/block index 2f3a645d7a..cd7bd78107 100644 --- a/tools/examples/block +++ b/tools/examples/block @@ -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" |