From dc5b64fd6149123af9a1230eb2819a27e505e3a9 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 5 Dec 2007 17:28:59 +0000 Subject: [PATCH] Check block file existence. Signed-off-by: Akio Takebe --- tools/examples/block | 1 + 1 file changed, 1 insertion(+) 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" -- 2.30.2