Changeset 10307 in vbox for trunk/src/VBox/Additions/solaris
- Timestamp:
- Jul 7, 2008 11:18:16 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 32928
- Location:
- trunk/src/VBox/Additions/solaris/SharedFolders
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/SharedFolders/Makefile.kmk
r10129 r10307 42 42 #vboxvfs_LDFLAGS += -N drv/vboxguest 43 43 44 # 45 # mount - Userland mount wrapper for vboxvfs 46 # 47 PROGRAMS += vboxvfsmount 48 vboxvfsmount_TEMPLATE = VBOXGUESTR3EXE 49 vboxvfsmount_SOURCES = vboxvfs_mount.c 50 44 51 include $(KBUILD_PATH)/subfooter.kmk 45 52 -
trunk/src/VBox/Additions/solaris/SharedFolders/vboxvfs_vfsops.c
r10140 r10307 33 33 #include <iprt/mem.h> 34 34 #include <iprt/err.h> 35 35 #if defined(DEBUG_ramshankar) 36 # undef LogFlow 37 # define LogFlow LogRel 38 # undef Log 39 # define Log LogRel 40 #endif 36 41 37 42 /******************************************************************************* … … 67 72 { 68 73 /* Option Name Cancel Opt. Default Arg Flags Data */ 69 { MNTOPT_VBOXVFS_UID, NULL, NULL,MO_HASVALUE, NULL },70 { MNTOPT_VBOXVFS_GID, NULL, NULL,MO_HASVALUE, NULL }74 { MNTOPT_VBOXVFS_UID, NULL, "0", MO_DEFAULT | MO_HASVALUE, NULL }, 75 { MNTOPT_VBOXVFS_GID, NULL, "0", MO_DEFAULT | MO_HASVALUE, NULL } 71 76 }; 72 77 … … 384 389 else 385 390 { 386 LogRel((DEVICE_NAME ":VBoxVFS_Mount: RTMemAllocZ failed to alloc %d bytes for ShFlShareName.\n", cbShflShareName)); 391 LogRel((DEVICE_NAME ":VBoxVFS_Mount: RTMemAllocZ failed to alloc %d bytes for ShFlShareName.\n", cbShflShareName)); 387 392 rc = ENOMEM; 388 393 } … … 398 403 if (rc) 399 404 goto mntError1; 400 405 401 406 /* Initialize the per-filesystem mutex */ 402 407 mutex_init(&pVBoxVFSGlobalInfo->MtxFS, "VBoxVFS_FSMtx", MUTEX_DEFAULT, NULL); … … 458 463 459 464 /* Undo work in reverse. */ 460 mntError1: 465 mntError1: 461 466 /* Just release the mount location. */ 462 467 VOP_CLOSE(pVNodeDev, (pVFS->vfs_flag & VFS_RDONLY) ? FREAD : FREAD | FWRITE, 1, (offset_t)0, pCred, NULL); 463 VN_RELE(pVNodeDev); 468 VN_RELE(pVNodeDev); 464 469 return rc; 465 470 } … … 480 485 } 481 486 482 /* @todo -XXX - Not sure of supporting force unmounts. What this means is that a failed force mount could bring down 487 /* @todo -XXX - Not sure of supporting force unmounts. What this means is that a failed force mount could bring down 483 488 * the entire system as hanging about vnode releases would no longer be valid after unloading ourselves... 484 489 */
Note:
See TracChangeset
for help on using the changeset viewer.