Changeset 37833 in vbox for trunk/src/VBox/Additions/solaris
- Timestamp:
- Jul 8, 2011 10:16:08 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_mount.c
r33550 r37833 42 42 *******************************************************************************/ 43 43 static char g_achOptBuf[MAX_MNTOPT_STR] = { '\0', }; 44 static int g_cbOptBuf = 0;45 44 static const int g_RetErr = 33; 46 45 static const int g_RetMagic = 2; … … 62 61 " uid=UID set the default file owner user id to UID\n" 63 62 " gid=GID set the default file owner group id to GID\n" 64 " stat_ttl=TTL set the \"time to live\" (in ms) for the stat caches (default %d)\n" 63 " stat_ttl=TTL set the \"time to live\" (in ms) for the stat caches (default %d)\n", DEF_STAT_TTL_MS); 64 fprintf(stderr, 65 65 " fsync honor fsync calls instead of ignoring them\n" 66 66 " ttl=TTL set the \"time to live\" to TID for the dentry\n" 67 67 " iocharset CHARSET use the character set CHARSET for i/o operations (default utf8)\n" 68 " convertcp CHARSET convert the shared folder name from the character set CHARSET to utf8\n\n" , DEF_STAT_TTL_MS);69 fprintf(stderr,"Less common used options:\n"68 " convertcp CHARSET convert the shared folder name from the character set CHARSET to utf8\n\n" 69 "Less common used options:\n" 70 70 " noexec,exec,nodev,dev,nosuid,suid\n"); 71 71 exit(1); … … 129 129 return g_RetMagic; 130 130 } 131 g_cbOptBuf = strlen(g_achOptBuf);132 131 break; 133 132 } … … 150 149 pszMount = argv[argc - 1]; 151 150 152 rc = mount(pszSpecial, pszMount, mntFlags | MS_OPTIONSTR, DEVICE_NAME, NULL, 0, g_achOptBuf, MAX_MNTOPT_STR);151 rc = mount(pszSpecial, pszMount, mntFlags | MS_OPTIONSTR, DEVICE_NAME, NULL, 0, g_achOptBuf, sizeof(g_achOptBuf)); 153 152 if (rc) 154 153 {
Note:
See TracChangeset
for help on using the changeset viewer.