58984a41017d9c036f03e174e6f9c20aa98a6081vboxsync/* $Id$ */
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync/** @file
2ec41475a713696b36e0e16ed433d18de6b25a74vboxsync * VirtualBox File System for Solaris Guests, VFS header.
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync */
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync/*
c58f1213e628a545081c70e26c6b67a841cff880vboxsync * Copyright (C) 2009-2011 Oracle Corporation
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync *
58984a41017d9c036f03e174e6f9c20aa98a6081vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
58984a41017d9c036f03e174e6f9c20aa98a6081vboxsync * available from http://www.virtualbox.org. This file is free software;
58984a41017d9c036f03e174e6f9c20aa98a6081vboxsync * you can redistribute it and/or modify it under the terms of the GNU
58984a41017d9c036f03e174e6f9c20aa98a6081vboxsync * General Public License (GPL) as published by the Free Software
58984a41017d9c036f03e174e6f9c20aa98a6081vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
58984a41017d9c036f03e174e6f9c20aa98a6081vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
58984a41017d9c036f03e174e6f9c20aa98a6081vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync *
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync * The contents of this file may alternatively be used under the terms
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync * of the Common Development and Distribution License Version 1.0
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync * VirtualBox OSE distribution, in which case the provisions of the
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync * CDDL are applicable instead of those of the GPL.
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync *
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync * You may elect to license modified versions of this file under the
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync * terms and conditions of either the GPL or the CDDL or both.
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync */
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync
2ec41475a713696b36e0e16ed433d18de6b25a74vboxsync#ifndef ___VBoxFS_vfs_Solaris_h
2ec41475a713696b36e0e16ed433d18de6b25a74vboxsync#define ___VBoxFS_vfs_Solaris_h
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync#ifdef __cplusplus
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsyncextern "C" {
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync#endif
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync/*
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync * Shared Folders filesystem per-mount data structure.
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync */
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsynctypedef struct sffs_data {
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync vfs_t *sf_vfsp; /* filesystem's vfs struct */
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync vnode_t *sf_rootnode; /* of vnode of the root directory */
6479169ec893c18a646cec595e4e214492d180f0vboxsync int sf_stat_ttl; /* ttl for stat caches (in ms) */
7d7942380dbc581fdb6100a14cd1500605ab4f24vboxsync int sf_fsync; /* whether to honor fsync or not */
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync char *sf_share_name;
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync char *sf_mntpath; /* name of mount point */
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync sfp_mount_t *sf_handle;
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync uint64_t sf_ino; /* per FS ino generator */
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync} sffs_data_t;
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync#ifdef __cplusplus
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync}
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync#endif
87e5ff36ca414b87b7c726ab60a2b0434410d15avboxsync
2ec41475a713696b36e0e16ed433d18de6b25a74vboxsync#endif /* !___VBoxFS_vfs_Solaris_h */
6479169ec893c18a646cec595e4e214492d180f0vboxsync