VirtualBox

Changeset 16486 in vbox


Ignore:
Timestamp:
Feb 3, 2009 1:12:25 PM (16 years ago)
Author:
vboxsync
Message:

shared folders: log if the limit for open files is exceeded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp

    r14215 r16486  
    684684    unsigned fOpen = 0;
    685685    bool fNoError = false;
     686    static int cErrors;
    686687
    687688    int rc = vbsfConvertFileOpenFlags(pParms->CreateFlags, &fOpen);
     
    730731               because the driver (VBoxSF.sys) expects rc = VINF_SUCCESS and checks the result code. */
    731732            fNoError = true;
     733            break;
     734        case VERR_TOO_MANY_OPEN_FILES:
     735            if (cErrors < 32)
     736            {
     737                LogRel(("SharedFolders host service: Cannot open '%s' -- too many open files.\n", pszPath));
     738#if defined RT_OS_LINUX || RT_OS_SOLARIS
     739                if (cErrors < 1)
     740                    LogRel(("SharedFolders host service: Try to increase the limit for open files (ulimt -n)\n"));
     741#endif
     742                cErrors++;
     743            }
     744            pParms->Result = SHFL_NO_RESULT;
    732745            break;
    733746        default:
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