Changeset 30519 in vbox for trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c
- Timestamp:
- Jun 30, 2010 8:04:26 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c
r28800 r30519 36 36 #include "vboxfs_vnode.h" 37 37 #include "vboxfs_vfs.h" 38 #include "vboxfs.h" 38 39 39 40 #ifdef u … … 64 65 /* Option Cancels Opt Arg Flags Data */ 65 66 {"uid", NULL, NULL, MO_HASVALUE, NULL}, 66 {"gid", NULL, NULL, MO_HASVALUE, NULL} 67 {"gid", NULL, NULL, MO_HASVALUE, NULL}, 68 {"stat_ttl", NULL, NULL, MO_HASVALUE, NULL} 67 69 }; 68 70 … … 227 229 uid_t uid = 0; 228 230 gid_t gid = 0; 231 int stat_ttl = DEF_STAT_TTL_MS; 229 232 char *optval; 230 233 long val; … … 287 290 (gid_t)val == val) 288 291 gid = val; 292 293 /* 294 * ttl to use for stat caches 295 */ 296 if (vfs_optionisset(vfsp, "stat_ttl", &optval) && 297 ddi_strtol(optval, NULL, 10, &val) == 0 && 298 (int)val == val) 299 stat_ttl = val; 289 300 290 301 /* … … 339 350 sffs->sf_uid = uid; 340 351 sffs->sf_gid = gid; 352 sffs->sf_stat_ttl = stat_ttl; 341 353 sffs->sf_share_name = share_name; 342 354 sffs->sf_mntpath = mount_point; … … 362 374 strcpy(path, "."); 363 375 mutex_enter(&sffs_lock); 364 sfnode = sfnode_make(sffs, path, VDIR, NULL, NULL );376 sfnode = sfnode_make(sffs, path, VDIR, NULL, NULL, NULL, 0); 365 377 sffs->sf_rootnode = sfnode_get_vnode(sfnode); 366 378 sffs->sf_rootnode->v_flag |= VROOT;
Note:
See TracChangeset
for help on using the changeset viewer.