VirtualBox

Changeset 10307 in vbox for trunk/src/VBox/Additions/solaris


Ignore:
Timestamp:
Jul 7, 2008 11:18:16 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32928
Message:

Solaris vboxvfs: added mount wrapper.

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  
    4242#vboxvfs_LDFLAGS      += -N drv/vboxguest
    4343
     44#
     45# mount - Userland mount wrapper for vboxvfs
     46#
     47PROGRAMS                += vboxvfsmount
     48vboxvfsmount_TEMPLATE    = VBOXGUESTR3EXE
     49vboxvfsmount_SOURCES     = vboxvfs_mount.c
     50
    4451include $(KBUILD_PATH)/subfooter.kmk
    4552
  • trunk/src/VBox/Additions/solaris/SharedFolders/vboxvfs_vfsops.c

    r10140 r10307  
    3333#include <iprt/mem.h>
    3434#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
    3641
    3742/*******************************************************************************
     
    6772{
    6873    /* 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 }
    7176};
    7277
     
    384389        else
    385390        {
    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));
    387392            rc = ENOMEM;
    388393        }
     
    398403    if (rc)
    399404        goto mntError1;
    400    
     405
    401406    /* Initialize the per-filesystem mutex */
    402407    mutex_init(&pVBoxVFSGlobalInfo->MtxFS, "VBoxVFS_FSMtx", MUTEX_DEFAULT, NULL);
     
    458463
    459464    /* Undo work in reverse. */
    460 mntError1:           
     465mntError1:
    461466    /* Just release the mount location. */
    462467    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);
    464469    return rc;
    465470}
     
    480485    }
    481486
    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
    483488     * the entire system as hanging about vnode releases would no longer be valid after unloading ourselves...
    484489     */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette