VirtualBox

Ignore:
Timestamp:
Nov 15, 2018 5:39:01 AM (6 years ago)
Author:
vboxsync
Message:

fixed a couple of typos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ImageMounter/vboxraw/vboxraw.cpp

    r75475 r75476  
    306306
    307307    uint64_t const cbMisalignHead = off & VD_SECTOR_MASK;
    308     uint64_t const cbcbMisalignTail  = (off + cbRead) & VD_SECTOR_MASK;
    309 
    310     if (cbMisalignHead + cbcbMisalignTail == 0) /* perfectly aligned request; just read it and done */
     308    uint64_t const cbMisalignTail  = (off + cbRead) & VD_SECTOR_MASK;
     309
     310    if (cbMisalignHead + cbMisalignTail == 0) /* perfectly aligned request; just read it and done */
    311311        rc = VDRead(pDisk, off, pvBuf, cbRead);
    312312    else
     
    338338            Assert(!(off % VD_SECTOR_SIZE));
    339339
    340             size_t cbPart = cbRead - cbcbMisalignTail;
     340            size_t cbPart = cbRead - cbMisalignTail;
    341341            Assert(!(cbPart % VD_SECTOR_SIZE));
    342342            rc = VDRead(pDisk, off, pbBuf, cbPart);
     
    352352        if (RT_SUCCESS(rc) && cbRead)
    353353        {
    354             Assert(cbRead == cbcbMisalignTail);
     354            Assert(cbRead == cbMisalignTail);
    355355            Assert(cbRead < VD_SECTOR_SIZE);
    356356            Assert(!(off % VD_SECTOR_SIZE));
     
    390390     */
    391391    uint64_t const cbMisalignHead = off & 511;
    392     size_t   const cbcbMisalignTail  = (off + cbWrite) & 511;
    393     if (!cbMisalignHead && !cbcbMisalignTail)
     392    size_t   const cbMisalignTail  = (off + cbWrite) & 511;
     393    if (!cbMisalignHead && !cbMisalignTail)
    394394    {
    395395          rc = VDWrite(pDisk, off, pbSrc, cbWrite);
     
    438438        {
    439439            Assert(!(off % VD_SECTOR_SIZE));
    440             size_t cbPart = cbWrite - cbcbMisalignTail;
     440            size_t cbPart = cbWrite - cbMisalignTail;
    441441            Assert(!(cbPart % VD_SECTOR_SIZE));
    442442            rc = VDWrite(pDisk, off, pbSrc, cbPart);
     
    454454        if (   RT_SUCCESS(rc) && cbWrite > 0)
    455455        {
    456             Assert(cbWrite == cbcbMisalignTail);
     456            Assert(cbWrite == cbMisalignTail);
    457457            Assert(cbWrite < VD_SECTOR_SIZE);
    458458            Assert(!(off % VD_SECTOR_SIZE));
     
    503503}
    504504
    505 /** @ fuse_operations::write */
     505/** @copydoc fuse_operations::write */
    506506static int vboxrawOp_write(const char *pszPath, const char *pbBuf, size_t cbBuf,
    507507                           off_t offset, struct fuse_file_info *pInfo)
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