VirtualBox

Changeset 3043 in vbox for trunk/src


Ignore:
Timestamp:
Jun 5, 2007 8:41:46 AM (18 years ago)
Author:
vboxsync
Message:

Hack for getting VMDK file registration work when there is no UUID in the file yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HardDiskImpl.cpp

    r3039 r3043  
    39713971            break;
    39723972
    3973         vrc = VDOpen (hdd, filePath, VD_OPEN_FLAGS_READONLY);
     3973        /// @todo changed from VD_OPEN_FLAGS_READONLY to VD_OPEN_FLAGS_NORMAL,
     3974        /// because otherwise registering a VMDK which so far has no UUID will
     3975        /// yield a null UUID. It cannot be added to a VMDK opened readonly,
     3976        /// obviously. This of course changes locking behavior, but for now
     3977        /// this is acceptable. A better solution needs to be found later.
     3978        vrc = VDOpen (hdd, filePath, VD_OPEN_FLAGS_NORMAL);
    39743979        if (VBOX_FAILURE (vrc))
    39753980            break;
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