smbfs.h revision 42d159821800ff240cc201c8fe07f575b9e8a62b
/*
* 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 2010 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>
/*
* Path component length
*
* The generic fs code uses MAXNAMELEN to represent
* what the largest component length is, but note:
* that length DOES include the terminating NULL.
* SMB_MAXFNAMELEN does NOT include the NULL.
*/
/*
* 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 (from nfs_clnt.h)
*/
/*
* Stuff returned by smbfs_smb_qfsattr
* See [CIFS] SMB_QUERY_FS_ATTRIBUTE_INFO
*/
typedef struct smb_fs_attr_info {
/*
* Corresponds to Darwin: struct smbmount
*/
typedef struct smbmntinfo {
/*
* The smbfs node cache for this mount.
* Named "hash" for historical reasons.
* See smbfs_node.h for details.
*/
/*
* Kstat statistics
*/
struct kstat *smi_io_kstats;
struct kstat *smi_ro_kstats;
/*
* Zones support.
*/
/* Lock for the list is: smi_globals_t -> smg_lock */
/*
* Stuff copied or derived from the mount args
*/
} smbmntinfo_t;
/*
* Attribute cache timeout defaults (in seconds).
*/
/* and limits for the mount options */
/*
* High-res time is nanoseconds.
*/
/*
* vnode pointer to mount info
*/
#endif /* _SMBFS_SMBFS_H */