Updated Branches: refs/heads/4.2 76bd04e37 -> 48d593991
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/48d59399 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/48d59399 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/48d59399 Branch: refs/heads/4.2 Commit: 48d5939918ad07e5343dfc51022da8096569d1e9 Parents: 76bd04e Author: Anthony Xu <[email protected]> Authored: Wed Jul 17 14:59:40 2013 -0700 Committer: Anthony Xu <[email protected]> Committed: Wed Jul 17 15:00:10 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/48d59399/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"
