IVMHardDisk::Compact method
The Compact method compacts a dynamically expanding hard disk image.
Syntax
HRESULT Compact(
[out] IVMTask **compactTask
);
Parameters
-
compactTask [out]
-
The task which is used to track the completion the compaction process.
Return value
This method supports standard return values, as well as the following. For information on Virtual Server specific return values not listed below, see HRESULT Codes Specific to the Virtual Server.
Return code | Description |
---|---|
|
The operation was successful. |
|
The parameter compactTask is NULL. |
|
The virtual hard disk image referenced by this IVMHardDisk object does not seem to be a valid image. |
|
The virtual hard disk image referenced by this IVMHardDisk object is in use. |
|
The virtual hard disk image referenced by this IVMHardDisk object must be a vmDiskTypeDynamic image type. |
|
The host volume does not have enough space to create a temporary file needed for the compaction of this virtual hard disk image. |
|
The virtual hard disk image cannot be compacted because the application is shutting down. |
|
An unexpected error occurred. |
Remarks
To compact a dynamically expanding hard disk image, free space on the disk image should first be zeroed.
Requirements
Product |
Microsoft Virtual Server 2005 onWindows Server 2003 |
Download |
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003 |
Header |
|