Changeset 71349 in vbox
- Timestamp:
- Mar 15, 2018 11:23:39 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 121300
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/err.h
r71222 r71349 2709 2709 /** Started guest process terminated with an exit code <> 0. */ 2710 2710 #define VWRN_GSTCTL_PROCESS_EXIT_CODE 6221 2711 /** Maximum objects has been reached. */ 2712 #define VERR_GSTCTL_MAX_OBJECTS_REACHED (-6222) 2711 2713 /** @} */ 2712 2714 -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r71347 r71349 432 432 <desc> 433 433 A provided password was incorrect. 434 </desc> 435 </result> 436 437 <result name="VBOX_E_MAXIMUM_REACHED" value="0x80BB000E"> 438 <desc> 439 A maximum has been reached. 440 </desc> 441 </result> 442 443 <result name="VBOX_E_GSTCTL_GUEST_ERROR" value="0x80BB000F"> 444 <desc> 445 Guest Control reported an error from the guest side. 434 446 </desc> 435 447 </result> … … 11882 11894 11883 11895 There can be up to 2048 objects (guest processes, files and directories) 11884 a time per guest session. Exceeding the limit will result in an error .11885 <!-- @todo r=bird: Add specific VBOX_E_XXX error for this and document it here! --> 11896 a time per guest session. Exceeding the limit will result in an error (see 11897 the corresponding functions for more). 11886 11898 11887 11899 When done with either of these objects, including the guest session itself, … … 12206 12218 Error while opening the directory. 12207 12219 </result> 12220 <result name="VBOX_E_MAXIMUM_REACHED"> 12221 The maximum of concurrent guest directories has been reached. 12222 </result> 12208 12223 </desc> 12209 12224 <param name="path" type="wstring" dir="in"> … … 12513 12528 Error while opening the file. 12514 12529 </result> 12530 <result name="VBOX_E_MAXIMUM_REACHED"> 12531 The maximum of concurrent guest files has been reached. 12532 </result> 12515 12533 </desc> 12516 12534 <param name="path" type="wstring" dir="in"> … … 12795 12813 <result name="VBOX_E_IPRT_ERROR"> 12796 12814 Error creating guest process. 12815 </result> 12816 12817 <result name="VBOX_E_MAXIMUM_REACHED"> 12818 The maximum of concurrent guest processes has been reached. 12797 12819 </result> 12798 12820 </desc> … … 13921 13943 13922 13944 There can be a maximum of 32 sessions at once per VM. An error will 13923 be returned if this has been reached. <!-- This should actually read: 13924 VBOX_E_IPRT_ERROR will be return if this limit has been reached. 13925 However, keep in mind that VBOX_E_IPRT_ERROR can be returned for about 13926 88 unrelated reasons, so you don't know what happend unless you parse 13927 the error text. (bird) --> 13928 <!-- @todo r=bird: Seriously, add an dedicated VBOX_E_MAX_GUEST_SESSIONS status 13929 for this condition. Do the same for all other maximums and things that could be 13930 useful to the API client. --> 13945 be returned if this has been reached. 13931 13946 13932 13947 For more information please consult <link to="IGuestSession"/> 13948 13949 <result name="VBOX_E_IPRT_ERROR"> 13950 Error creating guest session. 13951 </result> 13952 13953 <result name="VBOX_E_MAXIMUM_REACHED"> 13954 The maximum of concurrent guest sessions has been reached. 13955 </result> 13933 13956 </desc> 13934 13957 <param name="user" type="wstring" dir="in"> -
trunk/src/VBox/Main/src-all/Global.cpp
r70561 r71349 7 7 8 8 /* 9 * Copyright (C) 2008-201 7Oracle Corporation9 * Copyright (C) 2008-2018 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 744 744 case VERR_ACCESS_DENIED: return E_ACCESSDENIED; 745 745 746 /* VirtualBox COM status codes */746 /* VirtualBox COM status codes. */ 747 747 case VERR_COM_OBJECT_NOT_FOUND: return VBOX_E_OBJECT_NOT_FOUND; 748 748 case VERR_COM_INVALID_VM_STATE: return VBOX_E_INVALID_VM_STATE; … … 763 763 case VERR_FILE_NOT_FOUND: return VBOX_E_OBJECT_NOT_FOUND; 764 764 765 /* Guest Control errors. */ 766 case VERR_GSTCTL_MAX_OBJECTS_REACHED: return VBOX_E_MAXIMUM_REACHED; 767 case VERR_GSTCTL_GUEST_ERROR: return VBOX_E_GSTCTL_GUEST_ERROR; 768 765 769 default: 766 770 AssertMsgFailed(("%Rrc\n", aVBoxStatus)); -
trunk/src/VBox/Main/src-client/GuestCtrlImpl.cpp
r71345 r71349 420 420 { 421 421 case VERR_MAX_PROCS_REACHED: 422 hr = setError(VBOX_E_ IPRT_ERROR, tr("Maximum number of concurrent guest sessions (%ld) reached"),422 hr = setError(VBOX_E_MAXIMUM_REACHED, tr("Maximum number of concurrent guest sessions (%ld) reached"), 423 423 VBOX_GUESTCTRL_MAX_SESSIONS); 424 424 break; -
trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
r71345 r71349 540 540 break; 541 541 542 case VERR_ MAX_PROCS_REACHED:542 case VERR_GSTCTL_MAX_OBJECTS_REACHED: 543 543 strError += Utf8StrFmt(tr("Maximum number of concurrent guest processes has been reached")); 544 544 break; -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r71345 r71349 971 971 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 972 972 973 int rc = VERR_ MAX_PROCS_REACHED;973 int rc = VERR_GSTCTL_MAX_OBJECTS_REACHED; 974 974 if (mData.mNumObjects >= VBOX_GUESTCTRL_MAX_OBJECTS) 975 975 return rc; … … 1349 1349 } 1350 1350 1351 int rc = VERR_ MAX_PROCS_REACHED;1351 int rc = VERR_GSTCTL_MAX_OBJECTS_REACHED; 1352 1352 if (mData.mNumObjects >= VBOX_GUESTCTRL_MAX_OBJECTS) 1353 1353 return rc; … … 1568 1568 break; 1569 1569 1570 case VERR_ MAX_PROCS_REACHED:1570 case VERR_GSTCTL_MAX_OBJECTS_REACHED: 1571 1571 strError += Utf8StrFmt(tr("Maximum number of concurrent guest processes has been reached")); 1572 1572 break; … … 2129 2129 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 2130 2130 2131 int rc = VERR_ MAX_PROCS_REACHED;2131 int rc = VERR_GSTCTL_MAX_OBJECTS_REACHED; 2132 2132 if (mData.mNumObjects >= VBOX_GUESTCTRL_MAX_OBJECTS) 2133 2133 return rc; … … 3796 3796 } 3797 3797 } 3798 else if (vrc == VERR_ MAX_PROCS_REACHED)3798 else if (vrc == VERR_GSTCTL_MAX_OBJECTS_REACHED) 3799 3799 hr = setErrorVrc(vrc, tr("Maximum number of concurrent guest processes per session (%u) reached"), 3800 3800 VBOX_GUESTCTRL_MAX_OBJECTS);
Note:
See TracChangeset
for help on using the changeset viewer.