VirtualBox

Changeset 65479 in vbox


Ignore:
Timestamp:
Jan 27, 2017 11:53:03 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
113107
Message:

Devices/Storage/DrvDiskIntegrity: Some addition

File:
1 edited

Legend:

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

    r64724 r65479  
    11161116        /* Update our copy. */
    11171117        RTSgBufCopyToBuf(&SgBuf, (uint8_t *)pIoReq->IoSeg.pvSeg + offDst, cbCopy);
     1118
     1119        /* Validate the just read data against our copy if possible. */
     1120        if (   pThis->fValidateMemBufs
     1121            && pThis->fCheckConsistency
     1122            && pIoReq->enmTxDir == DRVDISKAIOTXDIR_READ)
     1123        {
     1124            RTSGSEG Seg;
     1125
     1126            Seg.pvSeg = (uint8_t *)pIoReq->IoSeg.pvSeg + offDst;
     1127            Seg.cbSeg = cbCopy;
     1128
     1129            rc = drvdiskintReadVerify(pThis, &Seg, 1, pIoReq->off + offDst,
     1130                                      cbCopy);
     1131        }
    11181132    }
    11191133
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