/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2013 Nexenta Systems, Inc. All rights reserved.
*/
#ifndef _SMBSRV_SMB_VOPS_H
#define _SMBSRV_SMB_VOPS_H
/*
* Common file system interfaces and definitions.
*/
#ifdef __cplusplus
extern "C" {
#endif
struct smb_node;
struct smb_request;
/*
* Note: When specifying the mask for an smb_attr_t,
* the sa_mask, and not the sa_vattr.va_mask, should be
* filled in. The #define's that should be used are those
* prefixed with SMB_AT_*. Only FSIL routines should
* manipulate the sa_vattr.va_mask field.
*/
typedef struct smb_attr {
} smb_attr_t;
/*
* Some useful combinations, for convenience. Some of the sets are
* based on the info levels of SMB Query File Info.
*/
/* See SMB_FILE_BASIC_INFORMATION */
/* SMB_FILE_STANDARD_INFORMATION (also delete-on-close flag) */
/*
* SMB_FILE_ALL_INFORMATION
* Note: does not include: SMB_AT_UID, SMB_AT_GID, etc.
* It's not literally "all", but "all SMB cares about"
*/
int smb_vop_init(void);
void smb_vop_fini(void);
void smb_vop_start(void);
smb_attr_t *, cred_t *);
vsecattr_t *);
vsecattr_t *);
int smb_vop_traverse_check(vnode_t **);
int smb_vop_other_opens(vnode_t *, int);
void smb_vop_catia_v4tov5(char *, char *, int);
char *smb_vop_catia_v5tov4(char *, char *, int);
#ifdef __cplusplus
}
#endif
#endif /* _SMBSRV_SMB_VOPS_H */