VirtualBox

Changeset 41576 in vbox


Ignore:
Timestamp:
Jun 5, 2012 12:08:04 PM (13 years ago)
Author:
vboxsync
Message:

Storage: Add VFS file glue for the VD library

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vd.h

    r40258 r41576  
    3333#include <iprt/net.h>
    3434#include <iprt/sg.h>
     35#include <iprt/vfs.h>
    3536#include <VBox/cdefs.h>
    3637#include <VBox/types.h>
     
    113114/** Mask of all valid repair flags. */
    114115#define VD_REPAIR_FLAGS_MASK                    (VD_REPAIR_DRY_RUN)
     116/** @} */
     117
     118/** @name VD image VFS file flags
     119 * @{
     120 */
     121/** Destroy the VD disk container when the VFS file is released. */
     122#define VD_VFSFILE_DESTROY_ON_RELEASE           RT_BIT_32(0)
     123
     124/** Mask of all valid repair flags. */
     125#define VD_VFSFILE_FLAGS_MASK                   (VD_VFSFILE_DESTROY_ON_RELEASE)
    115126/** @} */
    116127
     
    12021213                           uint32_t fFlags);
    12031214
     1215/**
     1216 * Create a VFS file handle from the given HDD container.
     1217 *
     1218 * @return  VBox status code.
     1219 * @param   pDisk           Pointer to HDD container.
     1220 * @param   fFlags          Combination of the VD_VFSFILE_* flags.
     1221 * @param   phVfsFile       Where to stoer the handle to the VFS file on success.
     1222 */
     1223VBOXDDU_DECL(int) VDCreateVfsFileFromDisk(PVBOXHDD pDisk, uint32_t fFlags,
     1224                                          PRTVFSFILE phVfsFile);
     1225
    12041226RT_C_DECLS_END
    12051227
  • trunk/src/VBox/Storage/Makefile.kmk

    r41477 r41576  
    3737StorageLib_SOURCES  = \
    3838        VD.cpp \
     39        VDVfs.cpp \
    3940        VDI.cpp \
    4041        VMDK.cpp \
  • trunk/src/VBox/Storage/testcase/Makefile.kmk

    r41477 r41576  
    8080        vbox-img.cpp \
    8181        $(VBOX_PATH_STORAGE_SRC)/VD.cpp \
     82        $(VBOX_PATH_STORAGE_SRC)/VDVfs.cpp \
    8283        $(VBOX_PATH_STORAGE_SRC)/VDI.cpp \
    8384        $(VBOX_PATH_STORAGE_SRC)/VMDK.cpp \
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette