Changeset 76154 in vbox for trunk/src/VBox/Storage
- Timestamp:
- Dec 11, 2018 9:01:30 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 127399
- Location:
- trunk/src/VBox/Storage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VDI.cpp
r69500 r76154 2527 2527 /** @todo implement making the image smaller, it is the responsibility of 2528 2528 * the user to know what he's doing. */ 2529 if ( cbSize < getImageDiskSize(&pImage->Header) 2530 || GET_MAJOR_HEADER_VERSION(&pImage->Header) == 0 2531 || pImage->uImageFlags & VD_IMAGE_FLAGS_FIXED) 2529 if (cbSize < getImageDiskSize(&pImage->Header)) 2530 rc = VERR_VD_SHRINK_NOT_SUPPORTED; 2531 else if ( GET_MAJOR_HEADER_VERSION(&pImage->Header) == 0 2532 || pImage->uImageFlags & VD_IMAGE_FLAGS_FIXED) 2532 2533 rc = VERR_NOT_SUPPORTED; 2533 2534 else if (cbSize > getImageDiskSize(&pImage->Header)) -
trunk/src/VBox/Storage/VHD.cpp
r73097 r76154 2546 2546 2547 2547 /* Making the image smaller is not supported at the moment. */ 2548 if ( cbSize < pImage->cbSize 2549 || pImage->uImageFlags & VD_IMAGE_FLAGS_FIXED) 2548 if (cbSize < pImage->cbSize) 2549 rc = VERR_VD_SHRINK_NOT_SUPPORTED; 2550 else if (pImage->uImageFlags & VD_IMAGE_FLAGS_FIXED) 2550 2551 rc = VERR_NOT_SUPPORTED; 2551 2552 else if (cbSize > pImage->cbSize)
Note:
See TracChangeset
for help on using the changeset viewer.