bug 11931: quote the snapshop name, in case whitespace in the name

status 11931: resolved fixed
Reviewed-by: kishan
This commit is contained in:
Edison Su 2012-01-31 16:18:48 -08:00
parent c530cbad2a
commit 4b56821672
1 changed files with 2 additions and 2 deletions

View File

@ -54,13 +54,13 @@ create_snapshot() {
return $failed
fi
$qemu_img snapshot -c $snapshotname $disk
$qemu_img snapshot -c "$snapshotname" $disk
if [ $? -gt 0 ]
then
failed=2
printf "***Failed to create snapshot $snapshotname for path $disk\n" >&2
$qemu_img snapshot -d $snapshotname $disk
$qemu_img snapshot -d "$snapshotname" $disk
if [ $? -gt 0 ]
then