VirtualBox

Changeset 35560 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Jan 14, 2011 1:37:32 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69444
Message:

PDM: introduced fEject parameter to PDMIMOUNT::pfnUnmount which is false if we don't need to eject the medium during unmount

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r35374 r35560  
    27112711                        AssertReturn(pIMount, VERR_INVALID_POINTER);
    27122712
    2713                         /* Unmount the media. */
    2714                         rc = pIMount->pfnUnmount(pIMount, fForceUnmount);
     2713                        /* Unmount the media (but do not eject the medium!) */
     2714                        rc = pIMount->pfnUnmount(pIMount, fForceUnmount, false /*=fEject*/);
    27152715                        if (rc == VERR_PDM_MEDIA_NOT_MOUNTED)
    27162716                            rc = VINF_SUCCESS;
     2717                        /* for example if the medium is locked */
     2718                        else if (RT_FAILURE(rc))
     2719                            return rc;
    27172720                    }
    27182721                }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette