VirtualBox

Changeset 19034 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 20, 2009 3:42:34 PM (16 years ago)
Author:
vboxsync
Message:

Storage/VBoxHDD: stub for compacting images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VBoxHDD.cpp

    r18557 r19034  
    21102110
    21112111/**
     2112 * Optimizes the storage consumption of an image. Typically the unused blocks
     2113 * have to be wiped with zeroes to achieve a substantial reduced storage use.
     2114 * Another optimization done is reordering the image blocks, which can provide
     2115 * a significant performance boost, as reads and writes tend to use less random
     2116 * file offsets.
     2117 *
     2118 * @return  VBox status code.
     2119 * @return  VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened.
     2120 * @return  VERR_VD_IMAGE_READ_ONLY if image is not writable.
     2121 * @return  VERR_NOT_SUPPORTED if this kind of image cannot be compacted.
     2122 * @return  VERR_NOT_IMPLEMENTED if this kind of image can be compacted, but
     2123 *                               the code for this isn't implemented yet.
     2124 * @param   pDisk           Pointer to HDD container.
     2125 * @param   nImage          Image number, counts from 0. 0 is always base image of container.
     2126 * @param   pVDIfsOperation Pointer to the per-operation VD interface list.
     2127 */
     2128VBOXDDU_DECL(int) VDCompact(PVBOXHDD pDisk, unsigned nImage,
     2129                            PVDINTERFACE pVDIfsOperation)
     2130{
     2131    return VERR_NOT_SUPPORTED;
     2132}
     2133
     2134/**
    21122135 * Closes the last opened image file in HDD container.
    21132136 * If previous image file was opened in read-only mode (that is normal) and closing image
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