gfs.h revision b38f097029665f4ece801ca129913d36f757b49c
/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_GFS_H
#define _SYS_GFS_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/vfs_opreg.h>
#include <sys/extdirent.h>
#include <sys/pathname.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct gfs_opsvec {
const char *gfsv_name; /* vnode description */
} gfs_opsvec_t;
int gfs_make_opsvec(gfs_opsvec_t *);
#define GFS_CACHE_VNODE 0x1
typedef struct gfs_dirent {
char *gfse_name; /* entry name */
int gfse_flags; /* flags */
} gfs_dirent_t;
typedef enum gfs_type {
} gfs_type_t;
typedef struct gfs_file {
int gfs_index; /* index in parent dir */
} gfs_file_t;
offset_t *, void *, int);
cred_t *);
typedef struct gfs_dir {
int gfsd_nstatic; /* # static entries */
int gfsd_maxlen; /* maximum name length */
} gfs_dir_t;
struct vfs;
ino64_t);
extern void *gfs_file_inactive(vnode_t *);
extern void *gfs_dir_inactive(vnode_t *);
caller_context_t *, int flags);
typedef struct gfs_readdir_state {
void *grd_dirent; /* directory entry buffer */
int grd_flags; /* flags from VOP_READDIR */
ino64_t, int);
const char *, int);
unsigned long);
extern int gfs_readdir_fini(gfs_readdir_state_t *, int, int *, int);
/*
* Objects with real extended attributes will get their . and ..
* readdir entries from the real xattr directory. GFS_STATIC_ENTRY_OFFSET
* lets us skip right to the static entries in the GFS directory.
*/
caller_context_t *, int);
#ifdef __cplusplus
}
#endif
#endif /* _SYS_GFS_H */