VirtualBox

Changeset 35010 in vbox


Ignore:
Timestamp:
Dec 13, 2010 1:51:20 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68837
Message:

VBoxService/AutoMount: Use different mtab location on Solaris.

Location:
trunk/src/VBox/Additions/common/VBoxService
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp

    r34230 r35010  
    5454
    5555#ifndef _PATH_MOUNTED
    56  #define _PATH_MOUNTED "/etc/mtab"
     56 #ifdef RT_OS_SOLARIS
     57  #define _PATH_MOUNTED         "/etc/mnttab"
     58 #else
     59  #define _PATH_MOUNTED         "/etc/mtab"
     60 #endif
    5761#endif
    5862
     
    110114    FILE *pFh = fopen(_PATH_MOUNTED, "r");
    111115    if (!pFh)
    112         VBoxServiceError("VBoxServiceAutoMountShareIsMounted: Could not open mtab!\n");
     116        VBoxServiceError("VBoxServiceAutoMountShareIsMounted: Could not open mount tab \"%s\"!\n",
     117                         _PATH_MOUNTED);
    113118    else
    114119    {
     
    128133    FILE *pFh = setmntent(_PATH_MOUNTED, "r+t");
    129134    if (pFh == NULL)
    130         VBoxServiceError("VBoxServiceAutoMountShareIsMounted: Could not open mtab!\n");
     135        VBoxServiceError("VBoxServiceAutoMountShareIsMounted: Could not open mount tab \"%s\"!\n",
     136                         _PATH_MOUNTED);
    131137    else
    132138    {
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp

    r34867 r35010  
    104104    {
    105105        size_t cbToWrite = pStdInBuf->cbSize - pStdInBuf->cbOffset;
    106         cbToWrite = RT_MIN(cbToWrite, _1M);
     106        cbToWrite = RT_MIN(cbToWrite, _64K);
    107107        *pfClose = false;
    108108        if (cbToWrite && pStdInBuf->fAlive)
     
    17221722            AssertPtr(pData);
    17231723
    1724             const uint32_t cbSize = _1M;
     1724            const uint32_t cbSize = _64K;
    17251725            uint32_t cbRead = cbSize;
    17261726            uint8_t *pBuf = (uint8_t*)RTMemAlloc(cbSize);
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