Changeset 19034 in vbox
- Timestamp:
- Apr 20, 2009 3:42:34 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 46148
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxHDD.h
r18566 r19034 1218 1218 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1219 1219 * @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. 1222 1222 * @param pVDIfsOperation Pointer to the per-operation VD interface list. 1223 1223 */ … … 1263 1263 1264 1264 /** 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 */ 1280 VBOXDDU_DECL(int) VDCompact(PVBOXHDD pDisk, unsigned nImage, 1281 PVDINTERFACE pVDIfsOperation); 1282 1283 /** 1265 1284 * Closes the last opened image file in HDD container. 1266 1285 * 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 2110 2110 2111 2111 /** 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 */ 2128 VBOXDDU_DECL(int) VDCompact(PVBOXHDD pDisk, unsigned nImage, 2129 PVDINTERFACE pVDIfsOperation) 2130 { 2131 return VERR_NOT_SUPPORTED; 2132 } 2133 2134 /** 2112 2135 * Closes the last opened image file in HDD container. 2113 2136 * 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.