VirtualBox

儲存庫 vbox 的更動 62748


忽略:
時間撮記:
2016-7-30 下午04:08:22 (8 年 以前)
作者:
vboxsync
訊息:

Storage: warnings.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Storage/ISCSI.cpp

    r62482 r62748  
    10421042{
    10431043    int rc = VINF_SUCCESS;
    1044     uint32_t pad = 0;
    10451044    unsigned int i;
    10461045
     
    15141513                                break;
    15151514                            case 0x0001:    /* security negotiation, step 1: receive final CHAP variant and challenge. */
     1515                            {
    15161516                                rc = iscsiUpdateParameters(pImage, bBuf, aISCSIRes[1].cbSeg);
    15171517                                if (RT_FAILURE(rc))
     
    15581558                                transit = true;
    15591559                                break;
     1560                            }
    15601561                            case 0x0002:    /* security negotiation, step 2: check authentication success. */
    15611562                                rc = iscsiUpdateParameters(pImage, bBuf, aISCSIRes[1].cbSeg);
     
    26242625static int iscsiValidatePDU(PISCSIRES paRes, uint32_t cnRes)
    26252626{
     2627    RT_NOREF1(cnRes);
    26262628    const uint32_t *pcrgResBHS;
    26272629    uint32_t hw0;
     
    29062908                /* Copy data from the received PDU into the T2I segments. */
    29072909                size_t cbCopied = RTSgBufCopyFromBuf(&pScsiReq->SgBufT2I, pvData, cbData);
    2908                 Assert(cbCopied == cbData);
     2910                Assert(cbCopied == cbData); NOREF(cbCopied);
    29092911
    29102912                if (final && (RT_N2H_U32(paResBHS[0]) & ISCSI_STATUS_BIT) != 0)
     
    34633465 * Internal. Main iSCSI I/O worker.
    34643466 */
    3465 static DECLCALLBACK(int) iscsiIoThreadWorker(RTTHREAD ThreadSelf, void *pvUser)
    3466 {
     3467static DECLCALLBACK(int) iscsiIoThreadWorker(RTTHREAD hThreadSelf, void *pvUser)
     3468{
     3469    RT_NOREF1(hThreadSelf);
    34673470    PISCSIIMAGE pImage = (PISCSIIMAGE)pvUser;
    34683471
     
    36223625static DECLCALLBACK(void) iscsiCommandCompleteSync(PISCSIIMAGE pImage, int rcReq, void *pvUser)
    36233626{
     3627    RT_NOREF1(pImage);
    36243628    PISCSICMDSYNC pIScsiCmdSync = (PISCSICMDSYNC)pvUser;
    36253629
     
    38113815{
    38123816    int rc = VINF_SUCCESS;
    3813     Assert(!fDelete); /* This MUST be false, the flag isn't supported. */
     3817    Assert(!fDelete); NOREF(fDelete); /* This MUST be false, the flag isn't supported. */
    38143818
    38153819    /* Freeing a never allocated image (e.g. because the open failed) is
     
    46454649/** @copydoc VBOXHDDBACKEND::pfnCheckIfValid */
    46464650static DECLCALLBACK(int) iscsiCheckIfValid(const char *pszFilename, PVDINTERFACE pVDIfsDisk,
    4647                              PVDINTERFACE pVDIfsImage, VDTYPE *penmType)
    4648 {
     4651                                           PVDINTERFACE pVDIfsImage, VDTYPE *penmType)
     4652{
     4653    RT_NOREF4(pszFilename, pVDIfsDisk, pVDIfsImage, penmType);
    46494654    LogFlowFunc(("pszFilename=\"%s\"\n", pszFilename));
    46504655
     
    47314736                                     void **ppBackendData)
    47324737{
     4738    RT_NOREF8(pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags);
     4739    RT_NOREF7(uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, enmType, ppBackendData);
    47334740    LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p enmType=%u ppBackendData=%#p",
    47344741                 pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, enmType, ppBackendData));
     
    48834890                                    size_t *pcbPostRead, unsigned fWrite)
    48844891{
     4892    RT_NOREF3(pcbPreRead, pcbPostRead, fWrite);
    48854893    LogFlowFunc(("pBackendData=%p uOffset=%llu pIoCtx=%#p cbToWrite=%u pcbWriteProcess=%p pcbPreRead=%p pcbPostRead=%p fWrite=%u\n",
    48864894                 pBackendData, uOffset, pIoCtx, cbToWrite, pcbWriteProcess, pcbPreRead, pcbPostRead, fWrite));
     
    51225130static DECLCALLBACK(int) iscsiGetPCHSGeometry(void *pBackendData, PVDGEOMETRY pPCHSGeometry)
    51235131{
     5132    RT_NOREF1(pPCHSGeometry);
    51245133    LogFlowFunc(("pBackendData=%#p pPCHSGeometry=%#p\n", pBackendData, pPCHSGeometry));
    51255134    PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData;
     
    51405149static DECLCALLBACK(int) iscsiSetPCHSGeometry(void *pBackendData, PCVDGEOMETRY pPCHSGeometry)
    51415150{
     5151    RT_NOREF1(pPCHSGeometry);
    51425152    LogFlowFunc(("pBackendData=%#p pPCHSGeometry=%#p PCHS=%u/%u/%u\n", pBackendData, pPCHSGeometry, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));
    51435153    PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData;
     
    51665176static DECLCALLBACK(int) iscsiGetLCHSGeometry(void *pBackendData, PVDGEOMETRY pLCHSGeometry)
    51675177{
     5178    RT_NOREF1(pLCHSGeometry);
    51685179    LogFlowFunc(("pBackendData=%#p pLCHSGeometry=%#p\n", pBackendData, pLCHSGeometry));
    51695180    PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData;
     
    51845195static DECLCALLBACK(int) iscsiSetLCHSGeometry(void *pBackendData, PCVDGEOMETRY pLCHSGeometry)
    51855196{
     5197    RT_NOREF1(pLCHSGeometry);
    51865198    LogFlowFunc(("pBackendData=%#p pLCHSGeometry=%#p LCHS=%u/%u/%u\n", pBackendData, pLCHSGeometry, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
    51875199    PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData;
     
    52775289                                         size_t cbComment)
    52785290{
     5291    RT_NOREF2(pszComment, cbComment);
    52795292    LogFlowFunc(("pBackendData=%#p pszComment=%#p cbComment=%zu\n", pBackendData, pszComment, cbComment));
    52805293    PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData;
     
    52955308static DECLCALLBACK(int) iscsiSetComment(void *pBackendData, const char *pszComment)
    52965309{
     5310    RT_NOREF1(pszComment);
    52975311    LogFlowFunc(("pBackendData=%#p pszComment=\"%s\"\n", pBackendData, pszComment));
    52985312    PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData;
     
    53185332static DECLCALLBACK(int) iscsiGetUuid(void *pBackendData, PRTUUID pUuid)
    53195333{
     5334    RT_NOREF1(pUuid);
    53205335    LogFlowFunc(("pBackendData=%#p pUuid=%#p\n", pBackendData, pUuid));
    53215336    PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData;
     
    53365351static DECLCALLBACK(int) iscsiSetUuid(void *pBackendData, PCRTUUID pUuid)
    53375352{
     5353    RT_NOREF1(pUuid);
    53385354    LogFlowFunc(("pBackendData=%#p Uuid=%RTuuid\n", pBackendData, pUuid));
    53395355    PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData;
     
    53605376static DECLCALLBACK(int) iscsiGetModificationUuid(void *pBackendData, PRTUUID pUuid)
    53615377{
     5378    RT_NOREF1(pUuid);
    53625379    LogFlowFunc(("pBackendData=%#p pUuid=%#p\n", pBackendData, pUuid));
    53635380    PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData;
     
    53785395static DECLCALLBACK(int) iscsiSetModificationUuid(void *pBackendData, PCRTUUID pUuid)
    53795396{
     5397    RT_NOREF1(pUuid);
    53805398    LogFlowFunc(("pBackendData=%#p Uuid=%RTuuid\n", pBackendData, pUuid));
    53815399    PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData;
     
    54025420static DECLCALLBACK(int) iscsiGetParentUuid(void *pBackendData, PRTUUID pUuid)
    54035421{
     5422    RT_NOREF1(pUuid);
    54045423    LogFlowFunc(("pBackendData=%#p pUuid=%#p\n", pBackendData, pUuid));
    54055424    PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData;
     
    54205439static DECLCALLBACK(int) iscsiSetParentUuid(void *pBackendData, PCRTUUID pUuid)
    54215440{
     5441    RT_NOREF1(pUuid);
    54225442    LogFlowFunc(("pBackendData=%#p Uuid=%RTuuid\n", pBackendData, pUuid));
    54235443    PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData;
     
    54445464static DECLCALLBACK(int) iscsiGetParentModificationUuid(void *pBackendData, PRTUUID pUuid)
    54455465{
     5466    RT_NOREF1(pUuid);
    54465467    LogFlowFunc(("pBackendData=%#p pUuid=%#p\n", pBackendData, pUuid));
    54475468    PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData;
     
    54625483static DECLCALLBACK(int) iscsiSetParentModificationUuid(void *pBackendData, PCRTUUID pUuid)
    54635484{
     5485    RT_NOREF1(pUuid);
    54645486    LogFlowFunc(("pBackendData=%#p Uuid=%RTuuid\n", pBackendData, pUuid));
    54655487    PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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