| Previous | Next |
| VDS_E_VD_NOT_ATTACHED_READONLY | VDS_E_VD_IS_BEING_DETACHED |
VDS_E_VD_IS_BEING_ATTACHED
VDS sets a virtual disk to VDS_VST_ATTACH_PENDING after attach begins and before the corresponding operating-system disk object has been instantiated. This HRESULT means another requested action arrived during that transition. The disk is neither safely detached nor fully available as an attached Windows disk yet.
Why this state matters
Attach can generate VDS and Plug and Play arrival notifications when the disk becomes visible. Management software should follow the asynchronous attach completion and then reacquire disk/volume state. Polling by issuing detach, attach, or metadata operations during the pending interval creates state conflicts and can make logs look like attach itself failed.
Diagnostic focus
- Wait on the
IVdsAsyncreturned byAttachand preserve its final HRESULT. - Record the transition from ATTACH_PENDING to an attached state and correlate disk-arrival notifications with the same virtual disk.
- Do not use drive-letter appearance as the only completion test because attach can be requested with no-drive-letter behavior.
- After completion, query the associated disk device and volume properties before starting dependent operations.
Technical references
IVdsOpenVDisk::Attach · VDS_VDISK_STATE · MS-VDS virtual disk state transitions · VDS_VDISK_PROPERTIES · attach vdisk command
Looking for a different code? Search another status or error code.