Contents of /trunk/mkinitrd-magellan/klibc/usr/kinit/fstype/nilfs_fs.h
Parent Directory | Revision Log
Revision 815 -
(show annotations)
(download)
Fri Apr 24 18:32:46 2009 UTC (15 years ago) by niro
File MIME type: text/plain
File size: 2594 byte(s)
Fri Apr 24 18:32:46 2009 UTC (15 years ago) by niro
File MIME type: text/plain
File size: 2594 byte(s)
-updated to klibc-1.5.15
1 | #ifndef __NILFS_FS_H |
2 | #define __NILFS_FS_H |
3 | |
4 | #define NILFS_SUPER_MAGIC 0x3434 /* NILFS filesystem magic number */ |
5 | |
6 | /* |
7 | * struct nilfs_super_block - structure of super block on disk |
8 | */ |
9 | struct nilfs_super_block { |
10 | __le32 s_rev_level; /* Revision level */ |
11 | __le16 s_minor_rev_level; /* minor revision level */ |
12 | __le16 s_magic; /* Magic signature */ |
13 | |
14 | __le16 s_bytes; /* Bytes count of CRC calculation |
15 | for this structure. s_reserved |
16 | is excluded. */ |
17 | __le16 s_flags; /* flags */ |
18 | __le32 s_crc_seed; /* Seed value of CRC calculation */ |
19 | __le32 s_sum; /* Check sum of super block */ |
20 | |
21 | __le32 s_log_block_size; /* Block size represented as follows |
22 | blocksize = 1 << (s_log_block_size + 10) */ |
23 | __le64 s_nsegments; /* Number of segments in filesystem */ |
24 | __le64 s_dev_size; /* block device size in bytes */ |
25 | __le64 s_first_data_block; /* 1st seg disk block number */ |
26 | __le32 s_blocks_per_segment; /* number of blocks per full segment */ |
27 | __le32 s_r_segments_percentage;/* Reserved segments percentage */ /* or __le16 */ |
28 | |
29 | __le64 s_last_cno; /* Last checkpoint number */ |
30 | __le64 s_last_pseg; /* disk block addr pseg written last */ |
31 | __le64 s_last_seq; /* seq. number of seg written last */ |
32 | __le64 s_free_blocks_count; /* Free blocks count */ |
33 | |
34 | __le64 s_ctime; /* Creation time (execution time of newfs) */ |
35 | __le64 s_mtime; /* Mount time */ |
36 | __le64 s_wtime; /* Write time */ |
37 | __le16 s_mnt_count; /* Mount count */ |
38 | __le16 s_max_mnt_count; /* Maximal mount count */ |
39 | __le16 s_state; /* File system state */ |
40 | __le16 s_errors; /* Behaviour when detecting errors */ |
41 | __le64 s_lastcheck; /* time of last check */ |
42 | |
43 | __le32 s_checkinterval; /* max. time between checks */ |
44 | __le32 s_creator_os; /* OS */ |
45 | __le16 s_def_resuid; /* Default uid for reserved blocks */ |
46 | __le16 s_def_resgid; /* Default gid for reserved blocks */ |
47 | __le32 s_first_ino; /* First non-reserved inode */ /* or __le16 */ |
48 | |
49 | __le16 s_inode_size; /* Size of an inode */ |
50 | __le16 s_dat_entry_size; /* Size of a dat entry */ |
51 | __le16 s_checkpoint_size; /* Size of a checkpoint */ |
52 | __le16 s_segment_usage_size; /* Size of a segment usage */ |
53 | |
54 | __u8 s_uuid[16]; /* 128-bit uuid for volume */ |
55 | char s_volume_name[16]; /* volume name */ |
56 | char s_last_mounted[64]; /* directory where last mounted */ |
57 | |
58 | __le32 s_c_interval; /* Commit interval of segment */ |
59 | __le32 s_c_block_max; /* Threshold of data amount for |
60 | the segment construction */ |
61 | __u32 s_reserved[192]; /* padding to the end of the block */ |
62 | }; |
63 | |
64 | #endif /* __NILFS_FS_H */ |