Collapse All
Parallels C API Reference
PrlDisk_EstimateCompactByBitmap Function
PHT_VIRTUAL_DISK

Estimate compacts for a virtual disk with free blocks map.

Syntax
PRL_RESULT PrlDisk_EstimateCompactByBitmap(
    const PRL_HANDLE Handle, 
    const PRL_UINT8_PTR pBitmap, 
    const PRL_UINT32 uBlockSize, 
    const PRL_UINT32_PTR puBlockCount, 
    const PRL_DISK_CALLBACK pDiskCallback, 
    PRL_VOID_PTR pParameter
);
File

PrlDisk.h

Parameters

Handle
A handle of type PHT_VIRTUAL_DISK identifying the virtual disk.
pBitmap
A pointer to a bit array of used blocks.
uBlockSize
Sectors per bit, i.e. block size.
pParameter
A pointer to a buffer containing user-defined data to pass to the callback function.
uBlockCount
Estimated blocks count that will be reclaimed.
pCallback
A pointer to a callback function or NULL pointer. If the parameter contains a pointer to a callback, the function will be called asynchronously. If it contains NULL pointer, the function will be called synchronously.
Returns

PRL_RESULT . Possible values:

PRL_ERR_INVALID_ARG - invalid argument values.

PRL_ERR_SUCCESS - function completed successfully.

Links
Copyright © 1999-2015 Parallels Holdings, Ltd. and its affiliates. All rights reserved.
What do you think about this topic? Send feedback!