3.1.4.20 Application Requests Deleting a Snapshot

The application provides:

  • A handle to the Open identifying a VHD set.

  • SnapshotID: An identifier of the snapshot to be deleted.

  • PersistReference: A flag; if TRUE, indicates that the snapshot reference is persisted.

  • SnapshotType: Type of the snapshot.

The client MUST construct an SVHDX_TUNNEL_DELETE_SNAPSHOT_REQUEST structure, as specified in section 2.2.4.26, as follows:

The SVHDX_TUNNEL_OPERATION_HEADER MUST be initialized as follows:

  • The OperationCode MUST be set to RSVD_TUNNEL_DELETE_SNAPSHOT

  • The Status field MUST be set to zero.

  • The RequestId field MUST be set to RequestIdentifier.

The SVHDX_TUNNEL_DELETE_SNAPSHOT_REQUEST MUST be initialized as follows:

  • The SnapshotId is set to the SnapshotID provided by the application.

  • The PersistReference is set to the PersistReference provided by the application.

  • The SnapshotType is set to the SnapshotType provided by the application.

The client MUST call the interface specified in [MS-SMB2] section 3.2.4.20.11, supplying the following input parameters:

  • Application-provided handle to identify the Open.

  • Control code: FSCTL_SVHDX_SYNC_TUNNEL_REQUEST.

  • SVHDX_TUNNEL_DELETE_SNAPSHOT_REQUEST structure as payload.