You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by an...@apache.org on 2013/07/18 00:01:12 UTC

git commit: updated refs/heads/master to 76e7985

Updated Branches:
  refs/heads/master c0db80fa1 -> 76e79851a


vhd-util check doesn't work for some corrupted vhd file, use vhd-util read instead


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/76e79851
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/76e79851
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/76e79851

Branch: refs/heads/master
Commit: 76e79851a089b08d6160168f75c90a106605971c
Parents: c0db80f
Author: Anthony Xu <an...@citrix.com>
Authored: Wed Jul 17 14:59:40 2013 -0700
Committer: Anthony Xu <an...@citrix.com>
Committed: Wed Jul 17 15:01:01 2013 -0700

----------------------------------------------------------------------
 scripts/storage/secondary/createtmplt.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/76e79851/scripts/storage/secondary/createtmplt.sh
----------------------------------------------------------------------
diff --git a/scripts/storage/secondary/createtmplt.sh b/scripts/storage/secondary/createtmplt.sh
index d16386e..3fa43e3 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"