Changeset 75411 in vbox
- Timestamp:
- Nov 12, 2018 8:31:05 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp
r75407 r75411 60 60 # include <sys/mnttab.h> 61 61 # include <sys/vfs.h> 62 RT_C_DECLS_BEGIN /* Only needed for old code.*/ 63 # include "../../linux/sharedfolders/vbsfmount.h" 64 RT_C_DECLS_END 62 65 # elif defined(RT_OS_LINUX) 63 66 # include <mntent.h> … … 1000 1003 { 1001 1004 /* Look for the dummy automounter option. */ 1002 if ( Entry.mnt_ opts != NULL1003 && strstr(Entry.mnt_ opts, g_szTag) != NULL)1005 if ( Entry.mnt_mntopts != NULL 1006 && strstr(Entry.mnt_mntopts, g_szTag) != NULL) 1004 1007 { 1005 1008 rc = vbsvcAutomounterAddEntry(pMountTable, Entry.mnt_special, Entry.mnt_mountp); … … 1523 1526 1524 1527 rc = mount(pEntry->pszName, pEntry->pszActualMountPoint, MS_OPTIONSTR, "vboxfs", 1525 NULL /*dataptr*/, 0 /* datalen */, szOpt Buf, cchOpts + 1);1528 NULL /*dataptr*/, 0 /* datalen */, szOpts, cchOpts + 1); 1526 1529 if (rc == 0) 1527 1530 { 1528 VGSvcVerbose(0, "vbsvcAutomounterMountIt: Shared folder '%s' was mounted to '%s'\n", pszShareName, pszMountPoint); 1531 VGSvcVerbose(0, "vbsvcAutomounterMountIt: Successfully mounted '%s' on '%s'\n", 1532 pEntry->pszName, pEntry->pszActualMountPoint); 1529 1533 return VINF_SUCCESS; 1530 1534 } 1531 1535 1532 1536 rc = errno; 1533 VGSvcError("vbsvcAutomounterMountIt: mount failed for '%s' at '%s': %s (%d)\n",1534 pEntry->pszName, pEntry->pszActualMountPoint, s trerror(rc), rc);1537 VGSvcError("vbsvcAutomounterMountIt: mount failed for '%s' on '%s' (szOpts=%s): %s (%d)\n", 1538 pEntry->pszName, pEntry->pszActualMountPoint, szOpts, strerror(rc), rc); 1535 1539 return VERR_OPEN_FAILED; 1536 1540
Note:
See TracChangeset
for help on using the changeset viewer.