VirtualBox

Changeset 21542 in vbox for trunk/src


Ignore:
Timestamp:
Jul 13, 2009 2:57:51 PM (15 years ago)
Author:
vboxsync
Message:

Runtime: separate error code for EBUSY, for getting better error message on OSX with raw disk/partition access

Location:
trunk/src/VBox/Runtime/common/err
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/err/RTErrConvertFromErrno.cpp

    r21337 r21542  
    55
    66/*
    7  * Copyright (C) 2006-2007 Sun Microsystems, Inc.
     7 * Copyright (C) 2006-2009 Sun Microsystems, Inc.
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    110110#endif
    111111#ifdef EBUSY
    112         case EBUSY:             return VERR_DEV_IO_ERROR; /**@todo fix duplicate error */
     112        case EBUSY:             return VERR_RESOURCE_BUSY;
    113113#endif
    114114#ifdef EEXIST
  • trunk/src/VBox/Runtime/common/err/RTErrConvertToErrno.cpp

    r21337 r21542  
    1 /* $Rev$ */
     1/* $Id$ */
    22/** @file
    33 * IPRT - Convert iprt status codes to errno.
     
    55
    66/*
    7  * Copyright (C) 2007 Sun Microsystems, Inc.
     7 * Copyright (C) 2007-2009 Sun Microsystems, Inc.
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    112112#endif
    113113#ifdef EBUSY
    114         //case VERR_DEV_IO_ERROR:                     return EBUSY;
     114        case VERR_RESOURCE_BUSY:                    return EBUSY;
    115115#endif
    116116#ifdef EEXIST
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