smbfs.h revision 8883f1c270cc8e33c18dd088e744840092b47bbb
/*
* Copyright (c) 2000-2001, Boris Popov
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Boris Popov.
* 4. Neither the name of the author nor the names of any co-contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: smbfs.h,v 1.30.100.1 2005/05/27 02:35:28 lindak Exp $
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SMBFS_SMBFS_H
#define _SMBFS_SMBFS_H
/*
* FS-specific VFS structures for smbfs.
* (per-mount stuff, etc.)
*
* This file used to have mount args stuff,
* but that's now in sys/fs/smbfs_mount.h
*/
#include <sys/vfs_opreg.h>
/*
* SM_MAX_STATFSTIME is the maximum time to cache statvfs data. Since this
* should be a fast call on the server, the time the data cached is short.
* That lets the cache handle bursts of statvfs() requests without generating
* lots of network traffic.
*/
#define SM_MAX_STATFSTIME 2
/* Mask values for smbmount structure sm_status field */
extern const struct fs_operation_def smbfs_vnodeops_template[];
extern struct vnodeops *smbfs_vnodeops;
struct smbnode;
struct smb_share;
/*
* The values for smi_flags.
*/
/*
* Corresponds to Darwin: struct smbmount
*/
typedef struct smbmntinfo {
/*
* Kstat statistics
*/
struct kstat *smi_io_kstats;
struct kstat *smi_ro_kstats;
/*
* Zones support.
*/
/* Lock for the list is: smi_globals_t -> smg_lock */
/*
* Copy of the args from mount.
*/
struct smbfs_args smi_args;
} smbmntinfo_t;
typedef struct smbfattr {
int fa_attr;
struct timespec fa_reqtime;
} smbfattr_t;
/*
* vnode pointer to mount info
*/
#endif /* _SMBFS_SMBFS_H */