| Previous | Next |
| VDS_E_VD_DISK_IS_EXPANDING | VDS_E_VD_DISK_IS_MERGING |
VDS_E_VD_DISK_IS_COMPACTING
VDS uses VDS_VST_COMPACTING while a compact operation reduces the physical size of a virtual-disk backing file. This HRESULT is returned to another operation that cannot run while that transition is active. It does not say that compaction failed or that the guest filesystem itself is being compressed.
Why this state matters
Compaction is an asynchronous virtual-disk metadata/storage operation. VDS permits compact on a detached disk and also on an attached disk that has been opened; the detailed state path differs for those cases. Diagnostics should therefore preserve both whether the disk is attached and the active compaction result rather than simply retrying a conflicting method.
Diagnostic focus
- Wait for the compaction
IVdsAsyncresult and capture its final HRESULT before starting the rejected operation. - Record whether the disk was detached, attached read-only, or attached with another access mode when compaction started.
- Compare
VirtualSizeandPhysicalSizeonly after compaction completes; the two properties describe different sizes. - Avoid tight retry loops because they add state conflicts without advancing the compaction transition.
Technical references
IVdsOpenVDisk::Compact · compact vdisk command · VDS_VDISK_STATE · MS-VDS virtual disk state transitions · VDS_VDISK_PROPERTIES
Looking for a different code? Search another status or error code.