VirtualBox

vbox的更動 54397 路徑 trunk/src/VBox/Storage/RAW.cpp


忽略:
時間撮記:
2015-2-23 下午05:46:47 (10 年 以前)
作者:
vboxsync
訊息:

Storage/RAW: fix raw image creation, previous code rounded up to full zero-fill chunks

檔案:
修改 1 筆資料

圖例:

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

    r50988 r54397  
    55
    66/*
    7  * Copyright (C) 2006-2013 Oracle Corporation
     7 * Copyright (C) 2006-2015 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    301301        while (uOff < cbSize)
    302302        {
    303             unsigned cbChunk = (unsigned)RT_MIN(cbSize, RAW_FILL_SIZE);
     303            unsigned cbChunk = (unsigned)RT_MIN(cbSize - uOff, RAW_FILL_SIZE);
    304304
    305305            rc = vdIfIoIntFileWriteSync(pImage->pIfIo, pImage->pStorage, uOff,
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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