vboxfs.h revision 29b69a4bd6aaf319dd7b525994002eddc22de841
/* $Id$ */
/** @file
* VirtualBox File System Driver for Solaris Guests, Internal Header.
*/
/*
* Copyright (C) 2010 Oracle Corporation
*
* 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.
*/
#ifndef ___VBoxVFS_Solaris_h
#define ___VBoxVFS_Solaris_h
#ifdef __cplusplus
extern "C" {
#endif
#define MAX_HOST_NAME 256
#define MAX_NLS_NAME 32
/** Default stat cache ttl (in ms) */
#define DEF_STAT_TTL_MS 200
/** The module name. */
#define DEVICE_NAME "vboxfs"
#ifdef _KERNEL
#include "../../common/VBoxGuestLib/VBoxGuestR0LibSharedFolders.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 */