Changeset 67885 in vbox
- Timestamp:
- Jul 10, 2017 4:45:06 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116851
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/MediumImpl.h
r67249 r67885 109 109 bool i_isMediumFormatFile() const; 110 110 uint64_t i_getSize() const; 111 uint64_t i_getLogicalSize() const; 111 112 DeviceType_T i_getDeviceType() const; 112 113 MediumType_T i_getType() const; -
trunk/src/VBox/Main/src-server/MediumImpl.cpp
r67745 r67885 3811 3811 { 3812 3812 return m->size; 3813 } 3814 3815 /** 3816 * Internal method to return the medium's size. Must have caller + locking! 3817 * @return 3818 */ 3819 uint64_t Medium::i_getLogicalSize() const 3820 { 3821 return m->logicalSize; 3813 3822 } 3814 3823 -
trunk/src/VBox/Main/src-server/SnapshotImpl.cpp
r67884 r67885 2805 2805 // base image. Important e.g. for medium formats which do not have 2806 2806 // a file representation such as iSCSI. 2807 2808 // not going to merge a big source into a small target 2809 if (pSource->i_getLogicalSize() > pTarget->i_getLogicalSize()) 2810 { 2811 rc = setError(E_FAIL, 2812 tr("Unable to merge storage '%s', because it is smaller than the source image. If you resize it to have a capacity of at least %lld bytes you can retry"), 2813 pTarget->i_getLocationFull().c_str(), pSource->i_getLogicalSize()); 2814 throw rc; 2815 } 2807 2816 2808 2817 // a couple paranoia checks for backward merges
Note:
See TracChangeset
for help on using the changeset viewer.