VirtualBox

vbox的更動 48743 路徑 trunk/src/VBox/Storage/QCOW.cpp


忽略:
時間撮記:
2013-9-27 下午06:19:03 (11 年 以前)
作者:
vboxsync
訊息:

Storage/VD: Add support for different sector sizes (only opening and reading and writing images, not creating them with a sector size other than 512 bytes)

檔案:
修改 1 筆資料

圖例:

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

    r46613 r48743  
    19371937}
    19381938
     1939/** @copydoc VBOXHDDBACKEND::pfnGetSectorSize */
     1940static uint32_t qcowGetSectorSize(void *pBackendData)
     1941{
     1942    LogFlowFunc(("pBackendData=%#p\n", pBackendData));
     1943    PQCOWIMAGE pImage = (PQCOWIMAGE)pBackendData;
     1944    uint32_t cb = 0;
     1945
     1946    AssertPtr(pImage);
     1947
     1948    if (pImage && pImage->pStorage)
     1949        cb = 512;
     1950
     1951    LogFlowFunc(("returns %u\n", cb));
     1952    return cb;
     1953}
     1954
    19391955/** @copydoc VBOXHDDBACKEND::pfnGetSize */
    19401956static uint64_t qcowGetSize(void *pBackendData)
     
    24782494    /* pfnGetVersion */
    24792495    qcowGetVersion,
     2496    /* pfnGetSectorSize */
     2497    qcowGetSectorSize,
    24802498    /* pfnGetSize */
    24812499    qcowGetSize,
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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