Changeset 749 in vbox
- Timestamp:
- Feb 7, 2007 2:49:33 PM (18 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r606 r749 3833 3833 AutoLock alock (this); 3834 3834 3835 /* 3836 * Lock the hard disk to ensure nobody registers it again before we delete 3837 * the differencing image (sanity check actually -- should never happen). 3838 */ 3835 /* Lock the hard disk to ensure nobody registers it again before we delete 3836 * the differencing image (sanity check actually -- should never happen). */ 3839 3837 AutoLock hdLock (aHardDisk); 3840 3838 … … 3848 3846 if (!aHardDisk->parent()) 3849 3847 { 3850 /* 3851 * non-differencing hard disk: 3852 * remove from the collection of top-level hard disks 3853 */ 3848 /* non-differencing hard disk: 3849 * remove from the collection of top-level hard disks */ 3854 3850 mData.mHardDisks.remove (aHardDisk); 3855 3851 } … … 3858 3854 Assert (aHardDisk->isDifferencing()); 3859 3855 3860 /* differencing hard disk: uninitialize */ 3861 rc = aHardDisk->asVDI()->DeleteImage(); 3856 /* differencing hard disk: delete (only if the last access check 3857 * succeeded) and uninitialize */ 3858 if (aHardDisk->asVDI()->lastAccessError().isNull()) 3859 rc = aHardDisk->asVDI()->DeleteImage(); 3862 3860 aHardDisk->uninit(); 3863 3861 } -
trunk/src/VBox/Main/include/HardDiskImpl.h
r351 r749 167 167 void updatePaths (const char *aOldPath, const char *aNewPath); 168 168 169 /* the se must be are called from under the lock */169 /* the following must be called from under the lock */ 170 170 bool isBusy() { isLockedOnCurrentThread(); return mBusy; } 171 171 unsigned readers() { isLockedOnCurrentThread(); return mReaders; } 172 const Bstr &lastAccessError() const { return mLastAccessError; } 172 173 173 174 // for VirtualBoxSupportErrorInfoImpl
Note:
See TracChangeset
for help on using the changeset viewer.