node.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 (c) 1992 by Sun Microsystems, Inc.
*/
#ifndef __NODE_H
#define __NODE_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/* types of a vvnode */
#define VV_DIR 1
#define VV_BLK 2
#define VV_CHR 3
#define VV_LINK 4
#define VV_SYMLINK 5
#define VV_PART 6
typedef struct vvnode {
struct q q;
char *vn_name; /* name of the vvnode */
union {
} vv_u;
char vn_update; /* marker */
char vn_dirtype; /* type of dir this lives in */
} vvnode_t;
#define NODE_TWIN 0x01
#define NODE_DBUP 0x02
#define NODE_BLK 0x04
#define NODE_CHR 0x08
#define NODE_TMPID 0x10
#define NODE_FIXNAME 0x20
/* for vn_dirtype */
#define DIR_UNKNOWN 0
#define DIR_DSK 1
#define DIR_RDSK 2
#define DIR_RMT 3
#define DIR_MT 4
#define DIR_DEV 5
#define DEVNAME "dev"
#define RDSKNAME "rdsk"
#define DSKNAME "dsk"
#define RMTNAME "rmt"
#define MTNAME "mt"
#define FN_ANY 255
struct vnwrap {
};
extern int never_writeback; /* never to autowrite back of label */
/*
* name space manipulation functions.
*/
void node_setup();
/*
* File handle functions
*/
#define FH_HASH_SIZE 8
#define MNTTYPE_NFS "nfs"
#define NFSCLIENT
#ifdef __cplusplus
}
#endif
#endif /* __NODE_H */