VirtualBox

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


Ignore:
Timestamp:
Jun 19, 2017 10:08:36 AM (8 years ago)
Author:
vboxsync
Message:

VD.cpp: VDGetFormat: Here be dragons. Killed the one named VERR_EOF, but can imagine a there are a lot more lurking around...

File:
1 edited

Legend:

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

    r66665 r67464  
    54675467                 * and signal success - the actual open will of course fail,
    54685468                 * but that will create a really sensible error message. */
     5469
     5470                    /** @todo r=bird: this bit of code is _certifiably_ _insane_ as it allows
     5471                     *        simple stuff like VERR_EOF to pass thru.  I've just amended it with
     5472                     *        disallowing VERR_EOF too, but someone needs to pick up the courage to
     5473                     *        fix this stuff properly or at least update the docs!
     5474                     *        (Parallels returns VERR_EOF, btw.) */
     5475
    54695476                ||  (   rc != VERR_VD_GEN_INVALID_HEADER
    54705477                     && rc != VERR_VD_VDI_INVALID_HEADER
     
    54785485                     && rc != VERR_VD_RAW_SIZE_FLOPPY_TOO_BIG
    54795486                     && rc != VERR_VD_PARALLELS_INVALID_HEADER
    5480                      && rc != VERR_VD_DMG_INVALID_HEADER))
     5487                     && rc != VERR_VD_DMG_INVALID_HEADER
     5488                     && rc != VERR_EOF /* bird for viso */
     5489                        ))
    54815490            {
    54825491                /* Copy the name into the new string. */
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