aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/coda_fs_i.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/coda_fs_i.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/linux/coda_fs_i.h')
-rw-r--r--include/linux/coda_fs_i.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/include/linux/coda_fs_i.h b/include/linux/coda_fs_i.h
new file mode 100644
index 000000000000..424fe9cf02c4
--- /dev/null
+++ b/include/linux/coda_fs_i.h
@@ -0,0 +1,55 @@
1/*
2 * coda_fs_i.h
3 *
4 * Copyright (C) 1998 Carnegie Mellon University
5 *
6 */
7
8#ifndef _LINUX_CODA_FS_I
9#define _LINUX_CODA_FS_I
10
11#ifdef __KERNEL__
12#include <linux/types.h>
13#include <linux/list.h>
14#include <linux/coda.h>
15
16/*
17 * coda fs inode data
18 */
19struct coda_inode_info {
20 struct CodaFid c_fid; /* Coda identifier */
21 u_short c_flags; /* flags (see below) */
22 struct list_head c_cilist; /* list of all coda inodes */
23 unsigned int c_mapcount; /* nr of times this inode is mapped */
24 unsigned int c_cached_epoch; /* epoch for cached permissions */
25 vuid_t c_uid; /* fsuid for cached permissions */
26 unsigned int c_cached_perm; /* cached access permissions */
27 struct inode vfs_inode;
28};
29
30/*
31 * coda fs file private data
32 */
33#define CODA_MAGIC 0xC0DAC0DA
34struct coda_file_info {
35 int cfi_magic; /* magic number */
36 struct file *cfi_container; /* container file for this cnode */
37 unsigned int cfi_mapcount; /* nr of times this file is mapped */
38};
39
40#define CODA_FTOC(file) ((struct coda_file_info *)((file)->private_data))
41
42/* flags */
43#define C_VATTR 0x1 /* Validity of vattr in inode */
44#define C_FLUSH 0x2 /* used after a flush */
45#define C_DYING 0x4 /* from venus (which died) */
46#define C_PURGE 0x8
47
48int coda_cnode_make(struct inode **, struct CodaFid *, struct super_block *);
49struct inode *coda_iget(struct super_block *sb, struct CodaFid *fid, struct coda_vattr *attr);
50int coda_cnode_makectl(struct inode **inode, struct super_block *sb);
51struct inode *coda_fid_to_inode(struct CodaFid *fid, struct super_block *sb);
52void coda_replace_fid(struct inode *, struct CodaFid *, struct CodaFid *);
53
54#endif
55#endif