VirtualBox

Changeset 38702 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 9, 2011 11:33:13 AM (13 years ago)
Author:
vboxsync
Message:

VSCSI+Main: Fix reporting non rotational medium status + set the CFGM key for SCSI devices

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r38694 r38702  
    147147
    148148        rc = vscsiVpdPagePoolAllocNewPage(&pVScsiLunSbc->VpdPagePool, VSCSI_VPD_SUPPORTED_PAGES_NUMBER,
    149                                           VSCSI_VPD_SUPPORTED_PAGES_SIZE + cVpdPages - 1, (uint8_t **)&pVpdPages);
     149                                          VSCSI_VPD_SUPPORTED_PAGES_SIZE + cVpdPages, (uint8_t **)&pVpdPages);
    150150        if (RT_SUCCESS(rc))
    151151        {
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r38688 r38702  
    29522952            }
    29532953        }
    2954         /** @todo add SCSI/SAS support once the SSD support is there */
    29552954
    29562955        Utf8Str devicePath = Utf8StrFmt("%s/%u/LUN#%u", pcszDevice, uInstance, uLUN);
     
    29632962            PCFGMNODE pL1Cfg = NULL;
    29642963            InsertConfigNode(pLunL0, "Config", &pL1Cfg);
     2964            InsertConfigInteger(pL1Cfg, "NonRotationalMedium", !!fNonRotational);
    29652965
    29662966            InsertConfigNode(pLunL0, "AttachedDriver", &pLunL0);
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