Name

VixDiskLib_Defragment

Description

VixError
VixDiskLib_Defragment(VixDiskLibHandle handle,
                      VixDiskLibProgressFunc progressFunc,
                      void *progressCallbackData);

This function defragments an existing virtual disk.

Parameters

diskHandle
Handle to an open virtual disk.
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 while calling progressFunc.

Return Value

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

Remarks

Example

   vixError = VixDiskLib_Defragment(disk.Handle(),
                                    DefragProgressFunc,
                                    NULL);

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