VirtualBox

Changeset 44408 in vbox for trunk/src/VBox/Storage


Ignore:
Timestamp:
Jan 28, 2013 9:54:00 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83382
Message:

Storage/VD: stop sabotaging the resize of diff images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VD.cpp

    r44400 r44408  
    77197719        fLockRead = true;
    77207720
    7721         /* Not supported if the disk has child images attached. */
    7722         AssertMsgBreakStmt(pDisk->cImages == 1, ("cImages=%u\n", pDisk->cImages),
     7721        /* Must have at least one image in the chain, will resize last. */
     7722        AssertMsgBreakStmt(pDisk->cImages >= 1, ("cImages=%u\n", pDisk->cImages),
    77237723                           rc = VERR_NOT_SUPPORTED);
    77247724
    7725         PVDIMAGE pImage = pDisk->pBase;
     7725        PVDIMAGE pImage = pDisk->pLast;
    77267726
    77277727        /* If there is no compact callback for not file based backends then
Note: See TracChangeset for help on using the changeset viewer.

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