VirtualBox

Ignore:
Timestamp:
Sep 8, 2011 7:52:08 AM (13 years ago)
Author:
vboxsync
Message:

VSCSI+DrvSCSI: Add support for the UNMAP command if discarding is enabled

File:
1 edited

Legend:

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

    r38678 r38680  
    55
    66/*
    7  * Copyright (C) 2006-2010 Oracle Corporation
     7 * Copyright (C) 2006-2011 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    4343}
    4444
    45 int vscsiReqSenseErrorSet(PVSCSISENSE pVScsiSense, PVSCSIREQINT pVScsiReq, uint8_t uSCSISenseKey, uint8_t uSCSIASC)
     45int vscsiReqSenseErrorSet(PVSCSISENSE pVScsiSense, PVSCSIREQINT pVScsiReq, uint8_t uSCSISenseKey, uint8_t uSCSIASC, uint8_t uSCSIASCQ)
    4646{
    4747    memset(pVScsiSense->abSenseBuf, 0, sizeof(pVScsiSense->abSenseBuf));
     
    5050    pVScsiSense->abSenseBuf[7]  = 10;
    5151    pVScsiSense->abSenseBuf[12] = uSCSIASC;
    52     pVScsiSense->abSenseBuf[13] = 0x00; /** @todo: Provide more info. */
     52    pVScsiSense->abSenseBuf[13] = uSCSIASCQ;
    5353
    5454    if (pVScsiReq->pbSense && pVScsiReq->cbSense)
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