~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/efs_fs_sb.h

Version: ~ [ linux-5.4-rc3 ] ~ [ linux-5.3.6 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.79 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.149 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.196 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.196 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.75 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * efs_fs_sb.h
  3  *
  4  * Copyright (c) 1999 Al Smith
  5  *
  6  * Portions derived from IRIX header files (c) 1988 Silicon Graphics
  7  */
  8 
  9 #ifndef __EFS_FS_SB_H__
 10 #define __EFS_FS_SB_H__
 11 
 12 #include <linux/types.h>
 13 #include <linux/magic.h>
 14 
 15 /* EFS superblock magic numbers */
 16 #define EFS_MAGIC       0x072959
 17 #define EFS_NEWMAGIC    0x07295a
 18 
 19 #define IS_EFS_MAGIC(x) ((x == EFS_MAGIC) || (x == EFS_NEWMAGIC))
 20 
 21 #define EFS_SUPER               1
 22 #define EFS_ROOTINODE           2
 23 
 24 /* efs superblock on disk */
 25 struct efs_super {
 26         __be32          fs_size;        /* size of filesystem, in sectors */
 27         __be32          fs_firstcg;     /* bb offset to first cg */
 28         __be32          fs_cgfsize;     /* size of cylinder group in bb's */
 29         __be16          fs_cgisize;     /* bb's of inodes per cylinder group */
 30         __be16          fs_sectors;     /* sectors per track */
 31         __be16          fs_heads;       /* heads per cylinder */
 32         __be16          fs_ncg;         /* # of cylinder groups in filesystem */
 33         __be16          fs_dirty;       /* fs needs to be fsck'd */
 34         __be32          fs_time;        /* last super-block update */
 35         __be32          fs_magic;       /* magic number */
 36         char            fs_fname[6];    /* file system name */
 37         char            fs_fpack[6];    /* file system pack name */
 38         __be32          fs_bmsize;      /* size of bitmap in bytes */
 39         __be32          fs_tfree;       /* total free data blocks */
 40         __be32          fs_tinode;      /* total free inodes */
 41         __be32          fs_bmblock;     /* bitmap location. */
 42         __be32          fs_replsb;      /* Location of replicated superblock. */
 43         __be32          fs_lastialloc;  /* last allocated inode */
 44         char            fs_spare[20];   /* space for expansion - MUST BE ZERO */
 45         __be32          fs_checksum;    /* checksum of volume portion of fs */
 46 };
 47 
 48 /* efs superblock information in memory */
 49 struct efs_sb_info {
 50         __u32   fs_magic;       /* superblock magic number */
 51         __u32   fs_start;       /* first block of filesystem */
 52         __u32   first_block;    /* first data block in filesystem */
 53         __u32   total_blocks;   /* total number of blocks in filesystem */
 54         __u32   group_size;     /* # of blocks a group consists of */ 
 55         __u32   data_free;      /* # of free data blocks */
 56         __u32   inode_free;     /* # of free inodes */
 57         __u16   inode_blocks;   /* # of blocks used for inodes in every grp */
 58         __u16   total_groups;   /* # of groups */
 59 };
 60 
 61 #endif /* __EFS_FS_SB_H__ */
 62 
 63 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp