Name

VixDiskLib_CreateChild

Description

VixError
VixDiskLib_CreateChild(VixDiskLibHandle diskHandle,
                       const char *childPath,
                       VixDiskLibDiskType diskType,
                       VixDiskLibProgressFunc progressFunc,
                       void *progressCallbackData);
This function creates a child disk (redo log) for a hosted virtual disk.

Parameters

diskHandle
Handle to an open virtual disk. Result of VixDiskLib_Open().
childPath
Path to the child disk file name.
diskType
VIXDISKLIB_DISK_MONOLITHIC_SPARSE or VIXDISKLIB_DISK_SPLIT_SPARSE.
progressFunc
A pointer to a function of type VixDiskLibProgressFunc. VixDiskLib will call this function periodically to update progress.
progressCallbackData
Opaque data that VixDiskLib will pass to progressFunc.

Return Value

VIX_OK if the function succeeded, otherwise an appropriate VIX error code.

Remarks

Example

   vixError = VixDiskLib_CreateChild(parentDisk.Handle(),
                                     appGlobals.diskPath,
                                     VIXDISKLIB_DISK_MONOLITHIC_SPARSE,
                                     NULL, NULL);

Copyright (C) 2007-2015 VMware, Inc. All rights reserved.