VirtualBox

Changeset 90002 in vbox for trunk


Ignore:
Timestamp:
Jul 2, 2021 2:49:14 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145480
Message:

VSCSILunMmc: report proper Media Event Code for MMCEVENTSTATUSTYPE_MEDIA_CHANGED, bugref:10054.

File:
1 edited

Legend:

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

    r90001 r90002  
    860860                aReply[2] = 0x04; /* media */
    861861                aReply[3] = 0x5e; /* supported = busy|media|external|power|operational */
    862                 aReply[4] = 0x03; /* media removal */
     862                aReply[4] = (OldStatus == MMCEVENTSTATUSTYPE_MEDIA_CHANGED) ? 0x04 /* media changed */ : 0x03; /* media removed */
    863863                aReply[5] = 0x00; /* medium absent / door closed */
    864864                aReply[6] = 0x00;
Note: See TracChangeset for help on using the changeset viewer.

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