VHDHDDCore.cpp revision 807f19bd5accba5e5025466e7b8649adb5afabeb
/** @file
* VHD Disk image, Core Code.
*/
/*
* Copyright (C) 2006-2008 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#define LOG_GROUP LOG_GROUP_VD_VHD
#include "VBoxHDD-newInternal.h"
#define VHD_RELATIVE_MAX_PATH 512
#define VHD_ABSOLUTE_MAX_PATH 512
#define VHD_SECTOR_SIZE 512
#define VHD_BLOCK_SIZE 0x00200000
/* This is common to all VHD disk types and is located at the end of the image */
#pragma pack(1)
typedef struct VHDFooter {
char Cookie[8];
char UniqueID[16];
} VHDFooter;
#pragma pack()
#define VHD_FOOTER_COOKIE "conectix"
#define VHD_FOOTER_COOKIE_SIZE 8
#define VHD_FOOTER_FEATURES_NOT_ENABLED 0
#define VHD_FOOTER_FEATURES_TEMPORARY 1
#define VHD_FOOTER_FEATURES_RESERVED 2
#define VHD_FOOTER_FILE_FORMAT_VERSION 0x00010000
#define VHD_FOOTER_DISK_TYPE_FIXED 2
#define VHD_FOOTER_DISK_TYPE_DYNAMIC 3
#define VHD_FOOTER_DISK_TYPE_DIFFERENCING 4
#define VHD_MAX_LOCATOR_ENTRIES 8
#define VHD_PLATFORM_CODE_NONE 0
#define VHD_PLATFORM_CODE_WI2R 0x57693272
#define VHD_PLATFORM_CODE_WI2K 0x5769326B
#define VHD_PLATFORM_CODE_W2RU 0x57327275
#define VHD_PLATFORM_CODE_W2KU 0x57326B75
#define VHD_PLATFORM_CODE_MAC 0x4D163220
#define VHD_PLATFORM_CODE_MACX 0x4D163258
/* Header for expanding disk images. */
#pragma pack(1)
typedef struct VHDParentLocatorEntry
{
typedef struct VHDDynamicDiskHeader
{
char Cookie[8];
#pragma pack()
#define VHD_DYNAMIC_DISK_HEADER_COOKIE "cxsparse"
#define VHD_DYNAMIC_DISK_HEADER_COOKIE_SIZE 8
#define VHD_DYNAMIC_DISK_HEADER_VERSION 0x00010000
/**
* Complete VHD image data structure.
*/
typedef struct VHDIMAGE
{
/** Base image name. */
const char *pszFilename;
/** Descriptor file if applicable. */
/** Pointer to the per-disk VD interface list. */
/** Error interface. */
/** Error interface callback table. */
/** Open flags passed by VBoxHD layer. */
unsigned uOpenFlags;
/** Image type. */
/** Image flags defined during creation or determined during open. */
unsigned uImageFlags;
/** Total size of the image. */
/** Original size of the image. */
/** Physical geometry of this image. */
/** Logical geometry of this image. */
/** Image UUID. */
/** Parent image UUID. */
/** Parent's time stamp at the time of image creation. */
/** Relative path to the parent image. */
char *pszParentFilename;
/** File size on the host disk (including all headers). */
/** The Block Allocation Table. */
/** Number of entries in the table. */
/** Size of one data block. */
/** Sectors per data block. */
/** Length of the sector bitmap in bytes. */
/** A copy of the disk footer. */
/** Current end offset of the file (without the disk footer). */
/** Start offset of data blocks. */
/** Size of the data block bitmap in sectors. */
/** Start of the block allocation table. */
/** Buffer to hold block's bitmap for bit search operations. */
void *pvBitmap;
/** Offset to the next data structure (dynamic disk header). */
/** Flag to force dynamic disk header update. */
bool fDynHdrNeedsUpdate;
/*******************************************************************************
* Static Variables *
*******************************************************************************/
/** NULL-terminated array of supported file extensions. */
static const char *const s_apszVhdFileExtensions[] =
{
"vhd",
};
/*******************************************************************************
* Internal Functions *
*******************************************************************************/
static int vhdFlush(void *pBackendData);
/* 946684800 is a number of seconds between 1/1/1970 and 1/1/2000 */
{
}
{
}
/**
* Internal: Compute and update header checksum.
*/
{
return ~checksum;
}
static int vhdFilenameToUtf16(const char *pszFilename, void *pvBuf, uint32_t cbBufSize, uint32_t *pcbActualSize)
{
int rc;
if (RT_FAILURE(rc))
goto out;
{
goto out;
}
if (pcbActualSize)
out:
if (tmp16)
return rc;
}
/**
* Internal: Update one locator entry.
*/
{
int rc;
char *pszTmp;
if (!pvBuf)
{
rc = VERR_NO_MEMORY;
goto out;
}
{
case VHD_PLATFORM_CODE_WI2R:
/* Update plain relative name. */
{
goto out;
}
break;
case VHD_PLATFORM_CODE_WI2K:
/* Update plain absolute name. */
if (RT_FAILURE(rc))
goto out;
break;
case VHD_PLATFORM_CODE_W2RU:
/* Update unicode relative name. */
if (RT_FAILURE(rc))
goto out;
break;
case VHD_PLATFORM_CODE_W2KU:
/* Update unicode absolute name. */
if (!pvBuf)
{
rc = VERR_NO_MEMORY;
goto out;
}
if (RT_FAILURE(rc))
{
goto out;
}
if (RT_FAILURE(rc))
goto out;
break;
default:
goto out;
}
out:
if (pvBuf)
return rc;
}
/**
* Internal: Update dynamic disk header from VHDIMAGE.
*/
{
int rc, i;
if (!pImage)
return VERR_VDI_NOT_OPENED;
if (RT_FAILURE(rc))
return rc;
{
return VERR_VDI_INVALID_HEADER;
}
{
return VERR_VDI_INVALID_HEADER;
}
/* Update parent's timestamp. */
/* Update parent's filename. */
if (RT_FAILURE(rc))
return rc;
/* Update parent's locators. */
for (i = 0; i < VHD_MAX_LOCATOR_ENTRIES; i++)
{
/* Skip empty locators */
{
if (RT_FAILURE(rc))
goto out;
}
}
/* Update parent's UUID */
out:
return rc;
}
{
if (uOpenFlags & VD_OPEN_FLAGS_ASYNC_IO)
return VERR_NOT_SUPPORTED;
if (pImage->pInterfaceError)
/*
* Open the image.
*/
if (RT_FAILURE(rc))
{
/* Do NOT signal an appropriate error here, as the VD layer has the
* choice of retrying the open if it failed. */
return rc;
}
return VERR_VDI_INVALID_HEADER;
}
{
{
}
break;
{
}
break;
{
}
break;
default:
return VERR_NOT_IMPLEMENTED;
}
/*
* Copy of the disk footer.
* If we allocate new blocks in differencing disks on write access
* the footer is overwritten. We need to write it at the end of the file.
*/
/*
* Is there a better way?
*/
return rc;
}
void **ppvBackendData)
{
int rc = VINF_SUCCESS;
/* Check open flags. All valid flags are supported. */
if (uOpenFlags & ~VD_OPEN_FLAGS_MASK)
{
return rc;
}
if (!pImage)
{
rc = VERR_NO_MEMORY;
return rc;
}
if (RT_SUCCESS(rc))
*ppvBackendData = pImage;
return rc;
}
{
int rc = VINF_SUCCESS;
unsigned i = 0;
Log(("Open a dynamic disk.\n"));
/*
* Read the dynamic disk header.
*/
rc = RTFileReadAt(pImage->File, uDynamicDiskHeaderOffset, &vhdDynamicDiskHeader, sizeof(VHDDynamicDiskHeader), NULL);
if (memcmp(vhdDynamicDiskHeader.Cookie, VHD_DYNAMIC_DISK_HEADER_COOKIE, VHD_DYNAMIC_DISK_HEADER_COOKIE_SIZE) != 0)
return VERR_INVALID_PARAMETER;
AssertMsg(!(pImage->cbDataBlock % 512), ("%s: Data block size is not a multiple of 512!!\n", __FUNCTION__));
/*
* Every block starts with a bitmap indicating which sectors are valid and which are not.
* We store the size of it to be able to calculate the real offset.
*/
return VERR_NO_MEMORY;
pBlockAllocationTable = (uint32_t *)RTMemAllocZ(pImage->cBlockAllocationTableEntries * sizeof(uint32_t));
if (!pBlockAllocationTable)
return VERR_NO_MEMORY;
/*
* Read the table.
*/
rc = RTFileReadAt(pImage->File, uBlockAllocationTableOffset, pBlockAllocationTable, pImage->cBlockAllocationTableEntries * sizeof(uint32_t), NULL);
pImage->uDataBlockStart = uBlockAllocationTableOffset + pImage->cBlockAllocationTableEntries * sizeof(uint32_t);
/*
* Because the offset entries inside the allocation table are stored big endian
* we need to convert them into host endian.
*/
pImage->pBlockAllocationTable = (uint32_t *)RTMemAllocZ(pImage->cBlockAllocationTableEntries * sizeof(uint32_t));
if (!pImage->pBlockAllocationTable)
return VERR_NO_MEMORY;
for (i = 0; i < pImage->cBlockAllocationTableEntries; i++)
{
}
return rc;
}
static int vhdCheckIfValid(const char *pszFilename)
{
int rc = VINF_SUCCESS;
if (RT_FAILURE(rc))
return VERR_VDI_INVALID_HEADER;
if (RT_FAILURE(rc))
{
return VERR_VDI_INVALID_HEADER;
}
{
return VERR_VDI_INVALID_HEADER;
}
/* If we are here the file seems to be valid. */
return VINF_SUCCESS;
}
static unsigned vhdGetVersion(void *pBackendData)
{
if (pImage)
return 1; /**< @todo use correct version */
else
return 0;
}
{
int rc = VINF_SUCCESS;
if (pImage)
else
return rc;
}
{
int rc;
if (pImage)
{
{
rc = VINF_SUCCESS;
}
else
}
else
return rc;
}
{
int rc;
if (pImage)
{
{
goto out;
}
rc = VINF_SUCCESS;
}
else
out:
return rc;
}
{
int rc;
if (pImage)
{
{
rc = VINF_SUCCESS;
}
else
}
else
return rc;
}
{
int rc;
if (pImage)
{
{
goto out;
}
rc = VINF_SUCCESS;
}
else
out:
return rc;
}
static unsigned vhdGetImageFlags(void *pBackendData)
{
unsigned uImageFlags;
if (pImage)
else
uImageFlags = 0;
return uImageFlags;
}
static unsigned vhdGetOpenFlags(void *pBackendData)
{
unsigned uOpenFlags;
if (pImage)
else
uOpenFlags = 0;
return uOpenFlags;
}
{
int rc;
/* Image must be opened and the new flags must be valid. Just readonly flag
* is supported. */
{
goto out;
}
if (RT_FAILURE(rc))
goto out;
out:
return rc;
}
{
return VERR_NOT_IMPLEMENTED;
}
{
int rc = VINF_SUCCESS;
/* Freeing a never allocated image (e.g. because the open failed) is
* not signalled as an error. After all nothing bad happens. */
if (pImage) {
}
return rc;
}
{
int rc = VINF_SUCCESS;
/* Freeing a never allocated image (e.g. because the open failed) is
* not signalled as an error. After all nothing bad happens. */
if (pImage) {
{
}
if (fDelete)
{
/* No point in updating the file that is deleted anyway. */
}
else
if (pImage->pszParentFilename)
}
return rc;
}
static int vhdRead(void *pBackendData, uint64_t uOffset, void *pvBuf, size_t cbRead, size_t *pcbActuallyRead)
{
int rc = VINF_SUCCESS;
LogFlow(("%s: pBackendData=%p uOffset=%llu pvBuf=%p cbRead=%u pcbActuallyRead=%p\n", __FUNCTION__, pBackendData, uOffset, pvBuf, cbRead, pcbActuallyRead));
return VERR_INVALID_PARAMETER;
/*
* If we have a dynamic disk image, we need to find the data block and sector to read.
*/
if (pImage->pBlockAllocationTable)
{
/*
* Get the data block first.
*/
LogFlow(("%s: cBlockAllocationTableEntry=%u cBatEntryIndex=%u\n", __FUNCTION__, cBlockAllocationTableEntry, cBATEntryIndex));
LogFlow(("%s: BlockAllocationEntry=%u\n", __FUNCTION__, pImage->pBlockAllocationTable[cBlockAllocationTableEntry]));
/*
* If the block is not allocated the content of the entry is ~0
*/
return VERR_VDI_BLOCK_FREE;
uVhdOffset = (pImage->pBlockAllocationTable[cBlockAllocationTableEntry] + pImage->cDataBlockBitmapSectors + cBATEntryIndex) * 512;
/*
* Clip read range to remain in this data block.
*/
/* Read in the block's bitmap. */
if (RT_SUCCESS(rc))
{
int cSectors;
{
/*
* The first sector being read is marked dirty, read as much as we
* can from child. Note that only sectors that are marked dirty
* must be read from child.
*/
if (cSectors != -1)
}
else
{
/*
* The first sector being read is marked clean, so we should read from
* our parent instead, but only as much as there are the following
* clean sectors, because the block may still contain durty sectors
* further on. We just need to compute the number of clean sectors
* and pass it to our caller along with the notification that they
* should be read from the parent.
*/
if (cSectors != -1)
}
}
}
else
{
}
if (pcbActuallyRead)
return rc;
}
static int vhdWrite(void *pBackendData, uint64_t uOffset, const void *pvBuf, size_t cbWrite, size_t *pcbWriteProcess, size_t *pcbPreRead, size_t *pcbPostRead, unsigned fWrite)
{
int rc = VINF_SUCCESS;
if (pImage->pBlockAllocationTable)
{
/*
* Get the data block first.
*/
/*
* If the block is not allocated the content of the entry is ~0
* and we need to allocate a new block.
*/
{
if (!pNewBlock)
return VERR_NO_MEMORY;
/*
* Write the new block at the current end of the file.
*/
/*
* Set the new end of the file and link the new block into the BAT.
*/
}
/*
* Calculate the real offset in the file.
*/
uVhdOffset = (pImage->pBlockAllocationTable[cBlockAllocationTableEntry] + pImage->cDataBlockBitmapSectors + cBATEntryIndex) * 512;
/*
* Clip write range.
*/
/* Read in the block's bitmap. */
if (RT_SUCCESS(rc))
{
/* Set the bits for all sectors having been written. */
/* Write the bitmap back. */
}
}
else
{
}
if (pcbWriteProcess)
return rc;
}
static int vhdFlush(void *pBackendData)
{
return VINF_SUCCESS;
if (pImage->pBlockAllocationTable)
{
/*
* This is an expanding image. Write the BAT and copy of the disk footer.
*/
return VERR_NO_MEMORY;
/*
* The BAT entries have to be stored in big endian format.
*/
unsigned i = 0;
for (i = 0; i < pImage->cBlockAllocationTableEntries; i++)
{
}
/*
* Write the block allocation table after the copy of the disk footer and the dynamic disk header.
*/
RTFileWriteAt(pImage->File, pImage->uBlockAllocationTableOffset, pBlockAllocationTableToWrite, cbBlockAllocationTableToWrite, NULL);
RTFileWriteAt(pImage->File, pImage->uCurrentEndOfFile, &pImage->vhdFooterCopy, sizeof(VHDFooter), NULL);
if (pImage->fDynHdrNeedsUpdate)
}
return rc;
}
{
if (pImage)
else
return 0;
}
{
if (pImage)
{
if (RT_SUCCESS(rc))
return cb;
else
return 0;
}
else
return 0;
}
{
int rc;
if (pImage)
{
rc = VINF_SUCCESS;
}
else
return rc;
}
{
int rc;
if (pImage)
{
/**@todo: implement */
rc = VINF_SUCCESS;
}
else
return rc;
}
{
int rc;
if (pImage)
{
}
else
return rc;
}
{
int rc;
if (pImage)
{
/**@todo: implement */
rc = VINF_SUCCESS;
}
else
return rc;
}
{
int rc;
if (pImage)
{
}
else
return rc;
}
{
int rc;
if (pImage)
{
rc = VINF_SUCCESS;
}
else
return rc;
}
{
int rc;
if (pImage)
{
rc = VINF_SUCCESS;
}
else
return rc;
}
{
int rc = VINF_SUCCESS;
{
{
pImage->fDynHdrNeedsUpdate = true;
}
else
}
else
return rc;
}
{
int rc;
if (pImage)
{
}
else
return rc;
}
{
int rc;
if (pImage)
{
rc = VINF_SUCCESS;
}
else
return rc;
}
/**
* Internal: Derive drive geometry from its size.
*/
{
{
/* ATA disks limited to 127 GB. */
}
{
u32SectorsPerTrack = 255;
u32Heads = 16;
}
else
{
u32SectorsPerTrack = 17;
if (u32Heads < 4)
{
u32Heads = 4;
}
{
u32SectorsPerTrack = 31;
u32Heads = 16;
}
{
u32SectorsPerTrack = 63;
u32Heads = 16;
}
}
}
/**
* Internal: signal an error to the frontend.
*/
const char *pszFormat, ...)
{
return rc;
}
static uint32_t vhdAllocateParentLocators(PVHDIMAGE pImage, VHDDynamicDiskHeader *pDDH, uint64_t u64Offset)
{
/* Relative Windows path. */
pLocator++;
/* Absolute Windows path. */
pLocator++;
/* Unicode relative Windows path. */
pLocator++;
/* Unicode absolute Windows path. */
}
/**
* Internal: Additional code for dynamic VHD image creation.
*/
{
int rc;
return vhdError(pImage, VERR_NO_MEMORY, RT_SRC_POS, N_("VHD: cannot allocate memory for bitmap storage"));
/* Initialize BAT. */
u32BlockAllocationTableSectors = (pImage->cBlockAllocationTableEntries * sizeof(uint32_t) + VHD_SECTOR_SIZE - 1) / VHD_SECTOR_SIZE;
pImage->pBlockAllocationTable = (uint32_t *)RTMemAllocZ(pImage->cBlockAllocationTableEntries * sizeof(uint32_t));
if (!pImage->pBlockAllocationTable)
for (unsigned i = 0; i < pImage->cBlockAllocationTableEntries; i++)
{
}
/* Round up to the sector size. */
if (RT_FAILURE(rc))
return vhdError(pImage, rc, RT_SRC_POS, N_("VHD: cannot set the file size for '%s'"), pImage->pszFilename);
/* Initialize and write the dynamic disk header. */
/* Compute and update checksum. */
DynamicDiskHeader.Checksum = RT_H2BE_U32(vhdChecksum(&DynamicDiskHeader, sizeof(DynamicDiskHeader)));
rc = RTFileWriteAt(pImage->File, sizeof(VHDFooter), &DynamicDiskHeader, sizeof(DynamicDiskHeader), NULL);
if (RT_FAILURE(rc))
return vhdError(pImage, rc, RT_SRC_POS, N_("VHD: cannot write dynamic disk header to image '%s'"), pImage->pszFilename);
/* Write BAT. */
rc = RTFileWriteAt(pImage->File, pImage->uBlockAllocationTableOffset, pImage->pBlockAllocationTable,
if (RT_FAILURE(rc))
return vhdError(pImage, rc, RT_SRC_POS, N_("VHD: cannot write BAT to image '%s'"), pImage->pszFilename);
return rc;
}
/**
* Internal: The actual code for VHD image creation, both fixed and dynamic.
*/
const char *pszComment,
unsigned uOpenFlags,
unsigned uPercentStart, unsigned uPercentSpan)
{
int rc;
if (pImage->pInterfaceError)
/* Create image file. */
if (RT_FAILURE(rc))
/* Initialize the footer. */
#ifdef RT_OS_DARWIN
#else /* Virtual PC supports only two platforms atm, so everything else will be Wi2k. */
#endif
Footer.SavedState = 0;
switch (enmType)
{
case VD_IMAGE_TYPE_FIXED:
/*
* Initialize fixed image.
* "The size of the entire file is the size of the hard disk in
* the guest operating system plus the size of the footer."
*/
if (RT_FAILURE(rc))
{
vhdError(pImage, rc, RT_SRC_POS, N_("VHD: cannot set the file size for '%s'"), pImage->pszFilename);
goto out;
}
break;
case VD_IMAGE_TYPE_NORMAL:
case VD_IMAGE_TYPE_DIFF:
/*
* Initialize dynamic image.
*
* The overall structure of dynamic disk is:
*
* [Copy of hard disk footer (512 bytes)]
* [Dynamic disk header (1024 bytes)]
* [BAT (Block Allocation Table)]
* [Parent Locators]
* [Data block 1]
* [Data block 2]
* ...
* [Data block N]
* [Hard disk footer (512 bytes)]
*/
/* We are half way thourgh with creation of image, let the caller know. */
if (pfnProgress)
if (RT_FAILURE(rc))
goto out;
break;
default:
break;
}
/* Compute and update the footer checksum. */
/* Store the footer */
if (RT_FAILURE(rc))
{
vhdError(pImage, rc, RT_SRC_POS, N_("VHD: cannot write footer to image '%s'"), pImage->pszFilename);
goto out;
}
/* Dynamic images contain a copy of the footer at the very beginning of the file. */
{
/* Write the copy of the footer. */
if (RT_FAILURE(rc))
{
vhdError(pImage, rc, RT_SRC_POS, N_("VHD: cannot write a copy of footer to image '%s'"), pImage->pszFilename);
goto out;
}
}
if (pfnProgress)
out:
return rc;
}
const char *pszComment,
unsigned uOpenFlags, unsigned uPercentStart,
void **ppvBackendData)
{
int rc = VINF_SUCCESS;
if (pIfProgress)
{
}
/* Check open flags. All valid flags are supported. */
if (uOpenFlags & ~VD_OPEN_FLAGS_MASK)
{
return rc;
}
/* @todo Check the values of other params */
if (!pImage)
{
rc = VERR_NO_MEMORY;
return rc;
}
if (RT_SUCCESS(rc))
{
* image is opened in read-only mode if the caller requested that. */
if (uOpenFlags & VD_OPEN_FLAGS_READONLY)
{
if (RT_FAILURE(rc))
goto out;
}
*ppvBackendData = pImage;
}
out:
return rc;
}
static void vhdDump(void *pBackendData)
{
if (pImage)
{
/** @todo this is just a stub */
}
}
{
int rc = VINF_SUCCESS;
if (pImage)
{
}
else
return rc;
}
{
int rc = VINF_SUCCESS;
if (pImage)
else
return rc;
}
{
int rc = VINF_SUCCESS;
if (pImage)
{
else
{
pImage->fDynHdrNeedsUpdate = true;
}
}
else
return rc;
}
{
int rc = VINF_SUCCESS;
if (pImage)
else
return rc;
}
{
int rc = VINF_SUCCESS;
if (pImage)
{
else
{
if (pImage->pszParentFilename)
if (!pImage->pszParentFilename)
rc = VERR_NO_MEMORY;
else
pImage->fDynHdrNeedsUpdate = true;
}
}
else
return rc;
}
static bool vhdIsAsyncIOSupported(void *pvBackendData)
{
return false;
}
{
int rc = VERR_NOT_IMPLEMENTED;
return rc;
}
{
int rc = VERR_NOT_IMPLEMENTED;
return rc;
}
{
/* pszBackendName */
"VHD",
/* cbSize */
sizeof(VBOXHDDBACKEND),
/* uBackendCaps */
/* papszFileExtensions */
/* paConfigInfo */
NULL,
/* pfnCheckIfValid */
/* pfnOpen */
/* pfnCreate */
/* pfnRename */
/* pfnClose */
/* pfnRead */
/* pfnWrite */
/* pfnFlush */
/* pfnGetVersion */
/* pfnGetImageType */
/* pfnGetSize */
/* pfnGetFileSize */
/* pfnGetPCHSGeometry */
/* pfnSetPCHSGeometry */
/* pfnGetLCHSGeometry */
/* pfnSetLCHSGeometry */
/* pfnGetImageFlags */
/* pfnGetOpenFlags */
/* pfnSetOpenFlags */
/* pfnGetComment */
/* pfnSetComment */
/* pfnGetUuid */
/* pfnSetUuid */
/* pfnGetModificationUuid */
/* pfnSetModificationUuid */
/* pfnGetParentUuid */
/* pfnSetParentUuid */
/* pfnGetParentModificationUuid */
/* pfnSetParentModificationUuid */
/* pfnDump */
/* pfnGetTimeStamp */
/* pfnGetParentTimeStamp */
/* pfnSetParentTimeStamp */
/* pfnGetParentFilename */
/* pfnSetParentFilename */
/* pfnIsAsyncIOSupported */
/* pfnAsyncRead */
/* pfnAsyncWrite */
};