Changeset 97359 in vbox
- Timestamp:
- Nov 1, 2022 1:28:02 AM (2 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r96888 r97359 68 68 #include "USBDeviceImpl.h" 69 69 #include "RemoteUSBDeviceImpl.h" 70 #include " SharedFolderImpl.h"70 #include "ConsoleSharedFolderImpl.h" 71 71 #ifdef VBOX_WITH_AUDIO_VRDE 72 72 # include "DrvAudioVRDE.h" -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r96888 r97359 49 49 #include "USBDeviceFiltersImpl.h" 50 50 #include "HostImpl.h" 51 #include " SharedFolderImpl.h"51 #include "MachineSharedFolderImpl.h" 52 52 #include "GuestOSTypeImpl.h" 53 53 #include "VirtualBoxErrorInfoImpl.h" … … 11896 11896 * adds hard disks to the list. If it is CleanupMode_Full, this adds all 11897 11897 * media to the list. 11898 * CleanupMode_DetachAllReturnHardDisksAndVMRemovable adds hard disk and 11899 * also removable medias if they are located in the VM folder and referenced 11900 * only by this VM (media prepared by unattended installer). 11898 11901 * 11899 11902 * This gets called from Machine::Unregister, both for the actual Machine and … … 11941 11944 AutoReadLock lock(pMedium COMMA_LOCKVAL_SRC_POS); 11942 11945 DeviceType_T devType = pMedium->i_getDeviceType(); 11946 size_t cBackRefs = pMedium->i_getMachineBackRefCount(); 11947 Utf8Str strMediumLocation = pMedium->i_getLocationFull(); 11948 strMediumLocation.stripFilename(); 11949 Utf8Str strMachineFolder = i_getSettingsFileFull(); 11950 strMachineFolder.stripFilename(); 11943 11951 if ( ( cleanupMode == CleanupMode_DetachAllReturnHardDisksOnly 11944 11952 && devType == DeviceType_HardDisk) 11953 || ( cleanupMode == CleanupMode_DetachAllReturnHardDisksAndVMRemovable 11954 && ( devType == DeviceType_HardDisk 11955 || ( cBackRefs <= 1 11956 && strMediumLocation == strMachineFolder 11957 && *pMedium->i_getFirstMachineBackrefId() == i_getId()))) 11945 11958 || (cleanupMode == CleanupMode_Full) 11946 11959 )
Note:
See TracChangeset
for help on using the changeset viewer.