PCLUSTER_PREPARE_SHARED_VOLUME_FOR_BACKUP callback function

[ClusterPrepareSharedVolumeForBackup is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

A call to this function is not required. The function does not do anything other than retrieve the volume path and the volume name.

Windows Server 2008 R2:  Prepares a cluster shared volume (CSV) for backup. This will mount the CSV locally, pin it to this cluster node, disable direct I/O, and set the volume state to "Backup in Progress".

Syntax

PCLUSTER_PREPARE_SHARED_VOLUME_FOR_BACKUP PclusterPrepareSharedVolumeForBackup;

DWORD PclusterPrepareSharedVolumeForBackup(
  LPCWSTR lpszFileName,
  LPWSTR lpszVolumePathName,
  LPDWORD lpcchVolumePathName,
  LPWSTR lpszVolumeName,
  LPDWORD lpcchVolumeName
)
{...}

Parameters

lpszFileName

Path to a directory or file on a cluster shared volume.

lpszVolumePathName

Address of buffer that will receive the CSV reparse point.

lpcchVolumePathName

Address of a DWORD that on input contains the size of the buffer (in WCHAR characters) pointed to by the lpszVolumePathName parameter and on output contains the size of the string written to that buffer. If size on input is not large enough then the function will fail and return ERROR_MORE_DATA and set the DWORD to the required size.

lpszVolumeName

Address of buffer that will receive the volume GUID path for the CSV.

lpcchVolumeName

Address of a DWORD that on input contains the size of the buffer (in WCHAR characters) pointed to by the lpszVolumeName parameter and on output contains the size of the string written to that buffer. If size on input is not large enough then the function will fail and return ERROR_MORE_DATA and set the DWORD to the required size.

Return Value

If the function succeeds, it returns ERROR_SUCCESS.

If the function fails, it returns one of the system error codes.

Remarks

The ClusterPrepareSharedVolumeForBackup function must be called from a node of the cluster.

Requirements

   
Windows version None supported Windows Server 2008 R2 Enterprise, Windows Server 2008 R2 Datacenter
Target Platform Windows
Header resapi.h

See Also

Backing Up and Restoring the Failover Cluster Configuration Using VSS

Backup and Restore Functions