Ok. I didn't make 2.4.0 in 2000. Tough. I tried, but we had some
[davej-history.git] / include / linux / coda_fs_i.h
blob4a776e87f9d99a1a3e669ad4b3b833b43b2d26d5
1 /*
2 * coda_fs_i.h
4 * Copyright (C) 1998 Carnegie Mellon University
6 */
8 #ifndef _LINUX_CODA_FS_I
9 #define _LINUX_CODA_FS_I
11 #ifdef __KERNEL__
12 #include <linux/types.h>
13 #include <linux/list.h>
14 #include <linux/coda.h>
16 #define CODA_CNODE_MAGIC 0x47114711
18 * coda fs inode data
20 struct coda_inode_info {
21 struct ViceFid c_fid; /* Coda identifier */
22 u_short c_flags; /* flags (see below) */
23 struct list_head c_volrootlist; /* list of volroot cnoddes */
24 struct list_head c_cilist; /* list of all coda inodes */
25 struct inode *c_vnode; /* inode associated with cnode */
26 unsigned int c_contcount; /* refcount for container inode */
27 struct coda_cred c_cached_cred; /* credentials of cached perms */
28 unsigned int c_cached_perm; /* cached access permissions */
29 int c_magic; /* to verify the data structure */
32 /* flags */
33 #define C_VATTR 0x1 /* Validity of vattr in inode */
34 #define C_FLUSH 0x2 /* used after a flush */
35 #define C_DYING 0x4 /* from venus (which died) */
36 #define C_PURGE 0x8
38 int coda_cnode_make(struct inode **, struct ViceFid *, struct super_block *);
39 int coda_cnode_makectl(struct inode **inode, struct super_block *sb);
40 struct inode *coda_fid_to_inode(ViceFid *fid, struct super_block *sb);
41 void coda_replace_fid(struct inode *, ViceFid *, ViceFid *);
43 #endif
44 #endif