VirtualBox

Changeset 2582 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
May 10, 2007 4:33:20 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
21070
Message:

Windows doesn't like flushing files opened in read-only mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp

    r2564 r2582  
    16821682#endif /* VBOX_WITH_VMDK_ESX */
    16831683            case VMDKETYPE_FLAT:
    1684                 if (pExtent->File != NIL_RTFILE)
     1684                if (pExtent->File != NIL_RTFILE && !(pImage->uOpenFlags & VD_OPEN_FLAGS_READONLY))
    16851685                    rc = RTFileFlush(pExtent->File);
    16861686                break;
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