Changeset 75451 in vbox
- Timestamp:
- Nov 14, 2018 2:28:26 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 126606
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp
r75446 r75451 996 996 struct mnttab Entry; 997 997 while (getmntent(pFile, &Entry) == 0) 998 if (strcmp(Entry.mnt_fstype, "vbox sf") == 0)998 if (strcmp(Entry.mnt_fstype, "vboxfs") == 0) 999 999 { 1000 1000 /* Look for the dummy automounter option. */ … … 1156 1156 { 1157 1157 VGSvcVerbose(3, "vbsvcAutomounterQueryMountPoint: Found shared folder '%s' at '%s'.\n", 1158 psz MountPoint, pszName);1158 pszName, pszMountPoint); 1159 1159 rc = VINF_SUCCESS; 1160 1160 } … … 1220 1220 { 1221 1221 VGSvcVerbose(3, "vbsvcAutomounterQueryMountPoint: Found shared folder '%s' at '%s'.\n", 1222 psz MountPoint, pszName);1222 pszName, pszMountPoint); 1223 1223 rc = VINF_SUCCESS; 1224 1224 } … … 1267 1267 { 1268 1268 VGSvcVerbose(3, "vbsvcAutomounterQueryMountPoint: Found shared folder '%s' at '%s'.\n", 1269 psz MountPoint, pszName);1269 pszName, pszMountPoint); 1270 1270 rc = VINF_SUCCESS; 1271 1271 } … … 1313 1313 { 1314 1314 VGSvcVerbose(3, "vbsvcAutomounterQueryMountPoint: Found shared folder '%s' at '%s'.\n", 1315 psz MountPoint, pszName);1315 pszName, pszMountPoint); 1316 1316 rc = VINF_SUCCESS; 1317 1317 } … … 1511 1511 * The ',VBoxService=auto' option (g_szTag) is ignored by the kernel but helps 1512 1512 * 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. 1513 1516 */ 1514 1517 char szOpts[MAX_MNTOPT_STR] = { '\0', }; … … 1522 1525 1523 1526 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); 1525 1528 if (rc == 0) 1526 1529 {
Note:
See TracChangeset
for help on using the changeset viewer.