VirtualBox

Changeset 75451 in vbox


Ignore:
Timestamp:
Nov 14, 2018 2:28:26 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126606
Message:

VBoxService/Automounter: Another vboxsf->vboxsf typo for solaris. Also discovered that mount failed with EOVERFLOW if option buffer too small. Corrected some logging. bugref:3544

File:
1 edited

Legend:

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

    r75446 r75451  
    996996        struct mnttab Entry;
    997997        while (getmntent(pFile, &Entry) == 0)
    998             if (strcmp(Entry.mnt_fstype, "vboxsf") == 0)
     998            if (strcmp(Entry.mnt_fstype, "vboxfs") == 0)
    999999            {
    10001000                /* Look for the dummy automounter option. */
     
    11561156                    {
    11571157                        VGSvcVerbose(3, "vbsvcAutomounterQueryMountPoint: Found shared folder '%s' at '%s'.\n",
    1158                                      pszMountPoint, pszName);
     1158                                     pszName, pszMountPoint);
    11591159                        rc = VINF_SUCCESS;
    11601160                    }
     
    12201220            {
    12211221                VGSvcVerbose(3, "vbsvcAutomounterQueryMountPoint: Found shared folder '%s' at '%s'.\n",
    1222                              pszMountPoint, pszName);
     1222                             pszName, pszMountPoint);
    12231223                rc = VINF_SUCCESS;
    12241224            }
     
    12671267                    {
    12681268                        VGSvcVerbose(3, "vbsvcAutomounterQueryMountPoint: Found shared folder '%s' at '%s'.\n",
    1269                                      pszMountPoint, pszName);
     1269                                     pszName, pszMountPoint);
    12701270                        rc = VINF_SUCCESS;
    12711271                    }
     
    13131313                    {
    13141314                        VGSvcVerbose(3, "vbsvcAutomounterQueryMountPoint: Found shared folder '%s' at '%s'.\n",
    1315                                      pszMountPoint, pszName);
     1315                                     pszName, pszMountPoint);
    13161316                        rc = VINF_SUCCESS;
    13171317                    }
     
    15111511     * The ',VBoxService=auto' option (g_szTag) is ignored by the kernel but helps
    15121512     * us identify our own mounts on restart.  See vbsvcAutomounterPopulateTable().
     1513     *
     1514     * Note! Must pass MAX_MNTOPT_STR rather than cchOpts to mount, as it may fail
     1515     *       with EOVERFLOW in vfs_buildoptionstr() during domount() otherwise.
    15131516     */
    15141517    char szOpts[MAX_MNTOPT_STR] = { '\0', };
     
    15221525
    15231526    rc = mount(pEntry->pszName, pEntry->pszActualMountPoint, MS_OPTIONSTR, "vboxfs",
    1524                NULL /*dataptr*/, 0 /* datalen */, szOpts, cchOpts + 1);
     1527               NULL /*dataptr*/, 0 /* datalen */, szOpts, MAX_MNTOPT_STR);
    15251528    if (rc == 0)
    15261529    {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette