| Previous | Next |
| VDS_E_SHRINK_UNKNOWN_FILESYSTEM | VDS_E_VD_DISK_IS_EXPANDING |
VDS_E_VD_DISK_NOT_OPEN
This code is closely related to the VDS open lifecycle, but it is phrased as an operation precondition: the selected method requires the virtual disk to be open. IVdsVDisk::Open returns IVdsOpenVDisk, and the latter is the interface that owns the state-changing operations on the opened virtual disk.
Why this state matters
An application can retain a VDS object identifier or an IVdsVDisk interface after the opened-handle interface has been released. That does not mean the virtual disk remains open in the sense required by VDS. Diagnose interface lifetime and the successful result of the most recent Open call, not only whether the object can still be enumerated.
Diagnostic focus
- Verify that the operation is invoked through the
IVdsOpenVDiskinstance returned by a successfulIVdsVDisk::Open. - Check COM reference lifetime and make sure the opened interface was not released during an asynchronous workflow.
- Record the access mask, open flags, and read/write depth used by the open request because later methods have different access requirements.
- If the VDS object was refreshed or reacquired, reopen the backing virtual disk and use the newly returned opened interface.
Technical references
IVdsVDisk::Open · IVdsOpenVDisk · IVdsVDisk · MS-VDS virtual disk state transitions · VDS common return codes
Looking for a different code? Search another status or error code.
