vboxfs.h revision 2872b8298aa68343cc843450f6035a94ab9d636a
/* $Id$ */
/** @file
* VirtualBox File System Driver for Solaris Guests, Internal Header.
*/
/*
* Copyright (C) 2008 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#ifndef ___VBoxVFS_Solaris_h
#define ___VBoxVFS_Solaris_h
#ifdef __cplusplus
extern "C" {
#endif
#define MAX_HOST_NAME 256
#define MAX_NLS_NAME 32
/** The module name. */
#define DEVICE_NAME "vboxfs"
/** The module description as seen in 'modinfo'. */
#define DEVICE_DESC "filesystem for VirtualBox Shared Folders"
/* Not sure if we need this; it seems only necessary for kernel mounts. */
#if 0
typedef struct vboxvfs_mountinfo
{
char name[MAX_HOST_NAME];
char nls_name[MAX_NLS_NAME];
int uid;
int gid;
int ttl;
#endif
#ifdef _KERNEL
#include "../../common/VBoxGuestLib/VBoxCalls.h"
#include <sys/vfs_opreg.h>
/** VNode for VBoxVFS */
typedef struct vboxvfs_vnode
{
/** Per-file system mount instance data. */
typedef struct vboxvfs_globinfo
{
int Ttl;
int Uid;
int Gid;
extern struct vnodeops *g_pVBoxVFS_vnodeops;
extern const fs_operation_def_t g_VBoxVFS_vnodeops_template[];
extern VBSFCLIENT g_VBoxVFSClient;
/** Helper functions */
extern int vboxvfs_Stat(const char *pszCaller, vboxvfs_globinfo_t *pVBoxVFSGlobalInfo, SHFLSTRING *pPath,
/** Helper macros */
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* ___VBoxVFS_Solaris_h */