VirtualBox

Changeset 19034 in vbox


Ignore:
Timestamp:
Apr 20, 2009 3:42:34 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46148
Message:

Storage/VBoxHDD: stub for compacting images

Location:
trunk
Files:
2 edited

Legend:

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

    r18566 r19034  
    12181218 * @return  VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened.
    12191219 * @param   pDisk           Pointer to HDD container.
    1220  * @param   nImageFrom      Name of the image file to merge from.
    1221  * @param   nImageTo        Name of the image file to merge to.
     1220 * @param   nImageFrom      Image number to merge from, counts from 0. 0 is always base image of container.
     1221 * @param   nImageTo        Image number to merge to, counts from 0. 0 is always base image of container.
    12221222 * @param   pVDIfsOperation Pointer to the per-operation VD interface list.
    12231223 */
     
    12631263
    12641264/**
     1265 * Optimizes the storage consumption of an image. Typically the unused blocks
     1266 * have to be wiped with zeroes to achieve a substantial reduced storage use.
     1267 * Another optimization done is reordering the image blocks, which can provide
     1268 * a significant performance boost, as reads and writes tend to use less random
     1269 * file offsets.
     1270 *
     1271 * @return  VBox status code.
     1272 * @return  VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened.
     1273 * @return  VERR_VD_IMAGE_READ_ONLY if image is not writable.
     1274 * @return  VERR_NOT_SUPPORTED if this kind of image can be compacted, but
     1275 *                             this isn't supported yet.
     1276 * @param   pDisk           Pointer to HDD container.
     1277 * @param   nImage          Image number, counts from 0. 0 is always base image of container.
     1278 * @param   pVDIfsOperation Pointer to the per-operation VD interface list.
     1279 */
     1280VBOXDDU_DECL(int) VDCompact(PVBOXHDD pDisk, unsigned nImage,
     1281                            PVDINTERFACE pVDIfsOperation);
     1282
     1283/**
    12651284 * Closes the last opened image file in HDD container.
    12661285 * If previous image file was opened in read-only mode (that is normal) and closing image
  • 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.

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