#12866 new enhancement
VBoxManage clonehd should fail early if not enough disk space
回報者: | David Biesack | 負責人: | |
---|---|---|---|
元件: | virtual disk | 版本: | VirtualBox 4.3.8 |
關鍵字: | 副本: | ||
Guest type: | other | Host type: | other |
描述
Given a 40GB .vmdk file, trying to clone the disk
VBoxManage clonehd in.vmdk out.vdi --format vdi
will churn happily until it runs out of disk space many minutes later.
The command should first verify that there is sufficient space for the output file (which will be roughly the same size), and fail early if there is insufficient space.
Care should be be taken for the case that the output file is in a symlinked diretory; you need to check the canonical location.
A --force option could bypass that check (for example, if there is some other job running concurrently that will free up space for the new file).
Same should be true for modifyhd or other operations that create virtual disk or other large files.
I see the problem but this is common behavior on multi-tasking hosts. Such a file check would probably make sense for some people but
Nevertheless I will keep this ticket open.