Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/kinit/fstype/gfs2_fs.h

Parent Directory Parent Directory | Revision Log 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: 1342 byte(s)
-updated to klibc-1.5.15
1 #ifndef __GFS2_FS_H
2 #define __GFS2_FS_H
3
4 #define GFS2_MAGIC 0x01161970
5 #define GFS2_FORMAT_FS 1801
6 #define GFS2_FORMAT_MULTI 1900
7
8
9 /*
10 * An on-disk inode number
11 */
12 struct gfs2_inum {
13 __be64 no_formal_ino;
14 __be64 no_addr;
15 };
16
17 /*
18 * Generic metadata head structure
19 * Every inplace buffer logged in the journal must start with this.
20 */
21 struct gfs2_meta_header {
22 uint32_t mh_magic;
23 uint32_t mh_type;
24 uint64_t __pad0; /* Was generation number in gfs1 */
25 uint32_t mh_format;
26 uint32_t __pad1; /* Was incarnation number in gfs1 */
27 };
28
29 /* Requirement: GFS2_LOCKNAME_LEN % 8 == 0
30 * Includes: the fencing zero at the end */
31 #define GFS2_LOCKNAME_LEN 64
32
33 /*
34 * super-block structure
35 */
36 struct gfs2_sb {
37 struct gfs2_meta_header sb_header;
38
39 uint32_t sb_fs_format;
40 uint32_t sb_multihost_format;
41 uint32_t __pad0; /* Was superblock flags in gfs1 */
42
43 uint32_t sb_bsize;
44 uint32_t sb_bsize_shift;
45 uint32_t __pad1; /* Was journal segment size in gfs1 */
46
47 struct gfs2_inum sb_master_dir; /* Was jindex dinode in gfs1 */
48 struct gfs2_inum __pad2; /* Was rindex dinode in gfs1 */
49 struct gfs2_inum sb_root_dir;
50
51 char sb_lockproto[GFS2_LOCKNAME_LEN];
52 char sb_locktable[GFS2_LOCKNAME_LEN];
53 /* In gfs1, quota and license dinodes followed */
54 } __attribute__ ((__packed__));
55
56 #endif /* __GFS2_FS_H */