VirtualBox

Changeset 44408 in vbox


Ignore:
Timestamp:
Jan 28, 2013 9:54:00 AM (12 years ago)
Author:
vboxsync
Message:

Storage/VD: stop sabotaging the resize of diff images

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vd.h

    r43861 r44408  
    44
    55/*
    6  * Copyright (C) 2006-2011 Oracle Corporation
     6 * Copyright (C) 2006-2013 Oracle Corporation
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    796796
    797797/**
    798  * Resizes the given disk image to the given size.
     798 * Resizes the given disk image to the given size. It is OK if there are
     799 * multiple images open in the container. In this case the last disk image
     800 * will be resized.
    799801 *
    800802 * @return  VBox status
  • 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.

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