adfs_fs_sb.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * linux/include/linux/adfs_fs_sb.h
  3. *
  4. * Copyright (C) 1997-1999 Russell King
  5. */
  6. #ifndef _ADFS_FS_SB
  7. #define _ADFS_FS_SB
  8. /*
  9. * Forward-declare this
  10. */
  11. struct adfs_discmap;
  12. struct adfs_dir_ops;
  13. /*
  14. * ADFS file system superblock data in memory
  15. */
  16. struct adfs_sb_info {
  17. struct adfs_discmap *s_map; /* bh list containing map */
  18. struct adfs_dir_ops *s_dir; /* directory operations */
  19. uid_t s_uid; /* owner uid */
  20. gid_t s_gid; /* owner gid */
  21. umode_t s_owner_mask; /* ADFS owner perm -> unix perm */
  22. umode_t s_other_mask; /* ADFS other perm -> unix perm */
  23. __u32 s_ids_per_zone; /* max. no ids in one zone */
  24. __u32 s_idlen; /* length of ID in map */
  25. __u32 s_map_size; /* sector size of a map */
  26. unsigned long s_size; /* total size (in blocks) of this fs */
  27. signed int s_map2blk; /* shift left by this for map->sector */
  28. unsigned int s_log2sharesize;/* log2 share size */
  29. __le32 s_version; /* disc format version */
  30. unsigned int s_namelen; /* maximum number of characters in name */
  31. };
  32. #endif