VirtualBox

Ignore:
Timestamp:
Sep 28, 2016 8:51:22 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
110992
Message:

VSCSI: Port missing commands over from the AHCI controller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VSCSI/VSCSILun.cpp

    r63992 r64064  
    129129VBOXDDU_DECL(int) VSCSILunMountNotify(VSCSILUN hVScsiLun)
    130130{
     131    int rc = VINF_SUCCESS;
    131132    PVSCSILUNINT pVScsiLun = (PVSCSILUNINT)hVScsiLun;
    132133
     
    138139    pVScsiLun->fReady        = false;
    139140    pVScsiLun->fMediaPresent = true;
     141    if (pVScsiLun->pVScsiLunDesc->pfnVScsiLunMediumInserted)
     142        rc = pVScsiLun->pVScsiLunDesc->pfnVScsiLunMediumInserted(pVScsiLun);
    140143
    141     return VINF_SUCCESS;
     144    return rc;
    142145}
    143146
     
    151154VBOXDDU_DECL(int) VSCSILunUnmountNotify(VSCSILUN hVScsiLun)
    152155{
     156    int rc = VINF_SUCCESS;
    153157    PVSCSILUNINT pVScsiLun = (PVSCSILUNINT)hVScsiLun;
    154158
     
    159163    pVScsiLun->fReady        = false;
    160164    pVScsiLun->fMediaPresent = false;
     165    if (pVScsiLun->pVScsiLunDesc->pfnVScsiLunMediumRemoved)
     166        rc = pVScsiLun->pVScsiLunDesc->pfnVScsiLunMediumRemoved(pVScsiLun);
    161167
    162     return VINF_SUCCESS;
     168    return rc;
    163169}
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