Changeset 76154 in vbox
- Timestamp:
- Dec 11, 2018 9:01:30 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
include/VBox/err.h (modified) (1 diff)
-
src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp (modified) (1 diff)
-
src/VBox/Main/src-server/MediumImpl.cpp (modified) (1 diff)
-
src/VBox/Storage/VDI.cpp (modified) (1 diff)
-
src/VBox/Storage/VHD.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/err.h
r75853 r76154 1677 1677 /** The size of the raw floppy image is too big (>2.88MB) */ 1678 1678 #define VERR_VD_RAW_SIZE_FLOPPY_TOO_BIG (-3289) 1679 1679 /** Reducing the size is not supported */ 1680 #define VERR_VD_SHRINK_NOT_SUPPORTED (-3290) 1680 1681 /** @} */ 1681 1682 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r74829 r76154 765 765 if (FAILED(rc)) 766 766 { 767 if (rc == E_NOTIMPL) 767 if (!pProgress.isNull()) 768 CHECK_PROGRESS_ERROR(pProgress, ("Failed to resize medium")); 769 else if (rc == E_NOTIMPL) 768 770 RTMsgError("Resize medium operation is not implemented!"); 769 771 else if (rc == VBOX_E_NOT_SUPPORTED) 770 772 RTMsgError("Resize medium operation for this format is not implemented yet!"); 771 else if (!pProgress.isNull())772 CHECK_PROGRESS_ERROR(pProgress, ("Failed to resize medium"));773 773 else 774 774 RTMsgError("Failed to resize medium!"); -
trunk/src/VBox/Main/src-server/MediumImpl.cpp
r75373 r76154 10012 10012 if (RT_FAILURE(vrc)) 10013 10013 { 10014 if (vrc == VERR_VD_SHRINK_NOT_SUPPORTED) 10015 throw setErrorBoth(VBOX_E_NOT_SUPPORTED, vrc, 10016 tr("Shrinking is not yet supported for medium '%s'"), 10017 location.c_str()); 10014 10018 if (vrc == VERR_NOT_SUPPORTED) 10015 10019 throw setErrorBoth(VBOX_E_NOT_SUPPORTED, vrc, -
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.

