Changeset 15163 in vbox
- Timestamp:
- Dec 9, 2008 1:08:49 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 40570
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r15158 r15163 6911 6911 if ((*it)->isImplicit()) 6912 6912 { 6913 /* deassociate and mark for deletion */ 6914 rc = hd->detachFrom (mData->mUuid); 6915 AssertComRC (rc); 6913 6916 implicitAtts.push_back (*it); 6914 6917 continue; … … 6924 6927 rc = hd->detachFrom (mData->mUuid); 6925 6928 AssertComRC (rc); 6929 continue; 6926 6930 } 6927 6931 } … … 6929 6933 /* rollback hard disk changes */ 6930 6934 mHDData.rollback(); 6935 6936 MultiResult mrc (S_OK); 6931 6937 6932 6938 /* delete unused implicit diffs */ … … 6951 6957 ComObjPtr <HardDisk2> hd = (*it)->hardDisk(); 6952 6958 6953 rc = hd->deleteStorageAndWait(); 6954 6955 /// @todo NEWMEDIA report the error as a warning here. Note that 6956 /// we cannot simply abort the rollback because parts of machine 6957 /// data may have been already restored from backup and 6958 /// overwrote the recent changes. The best we can do is to 6959 /// deassociate the hard disk (to prevent the consistency) but 6960 /// leave it undeleted. 6961 6962 if (FAILED (rc)) 6963 { 6964 rc = hd->detachFrom (mData->mUuid); 6965 AssertComRC (rc); 6966 } 6959 mrc = hd->deleteStorageAndWait(); 6967 6960 } 6968 6961 … … 6975 6968 } 6976 6969 6977 return rc;6970 return mrc; 6978 6971 } 6979 6972
Note:
See TracChangeset
for help on using the changeset viewer.