From 76e79851a089b08d6160168f75c90a106605971c Mon Sep 17 00:00:00 2001 From: Anthony Xu Date: Wed, 17 Jul 2013 14:59:40 -0700 Subject: [PATCH] vhd-util check doesn't work for some corrupted vhd file, use vhd-util read instead --- scripts/storage/secondary/createtmplt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/storage/secondary/createtmplt.sh b/scripts/storage/secondary/createtmplt.sh index d16386e880b..3fa43e33823 100755 --- a/scripts/storage/secondary/createtmplt.sh +++ b/scripts/storage/secondary/createtmplt.sh @@ -198,7 +198,7 @@ if [ ${tmpltname%.vhd} != ${tmpltname} ] then if which vhd-util &>/dev/null then - vhd-util check -n ${tmpltimg2} > /dev/null + vhd-util read -p -n ${tmpltimg2} > /dev/null rollback_if_needed $tmpltfs $? "vhd check of $tmpltimg2 failed\n" vhd-util set -n ${tmpltimg2} -f "hidden" -v "0" > /dev/null rollback_if_needed $tmpltfs $? "vhd remove $tmpltimg2 hidden failed\n"