coda_fs_i.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:1k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /*
  2.  *  coda_fs_i.h
  3.  *
  4.  *  Copyright (C) 1998 Carnegie Mellon University
  5.  *
  6.  */
  7. #ifndef _LINUX_CODA_FS_I
  8. #define _LINUX_CODA_FS_I
  9. #ifdef __KERNEL__
  10. #include <linux/types.h>
  11. #include <linux/list.h>
  12. #include <linux/coda.h>
  13. /*
  14.  * coda fs inode data
  15.  */
  16. struct coda_inode_info {
  17.         struct ViceFid     c_fid; /* Coda identifier */
  18.         u_short            c_flags;     /* flags (see below) */
  19. struct list_head   c_cilist;    /* list of all coda inodes */
  20. struct file   *c_container; /* container file for this cnode */
  21. unsigned int       c_contcount; /* refcount for container file */
  22.         struct coda_cred   c_cached_cred; /* credentials of cached perms */
  23.         unsigned int       c_cached_perm; /* cached access permissions */
  24. };
  25. /* flags */
  26. #define C_VATTR       0x1   /* Validity of vattr in inode */
  27. #define C_FLUSH       0x2   /* used after a flush */
  28. #define C_DYING       0x4   /* from venus (which died) */
  29. #define C_PURGE       0x8
  30. int coda_cnode_make(struct inode **, struct ViceFid *, struct super_block *);
  31. struct inode *coda_iget(struct super_block *sb, struct ViceFid *fid, struct coda_vattr *attr);
  32. int coda_cnode_makectl(struct inode **inode, struct super_block *sb);
  33. struct inode *coda_fid_to_inode(ViceFid *fid, struct super_block *sb);
  34. void coda_replace_fid(struct inode *, ViceFid *, ViceFid *);
  35. #endif
  36. #endif