1 #ifndef __SQUASHFS_FS_H
2 #define __SQUASHFS_FS_H
8 #define SQUASHFS_MAGIC 0x73717368
9 #define SQUASHFS_MAGIC_SWAP 0x68737173
15 #define SQUASHFS_MAGIC_LZMA 0x71736873
16 #define SQUASHFS_MAGIC_LZMA_SWAP 0x73687371
18 /* definitions for structures on disk */
19 struct squashfs_super_block
{
22 unsigned int bytes_used_2
;
23 unsigned int uid_start_2
;
24 unsigned int guid_start_2
;
25 unsigned int inode_table_start_2
;
26 unsigned int directory_table_start_2
;
27 unsigned int s_major
:16;
28 unsigned int s_minor
:16;
29 unsigned int block_size_1
:16;
30 unsigned int block_log
:16;
32 unsigned int no_uids
:8;
33 unsigned int no_guids
:8;
34 unsigned int mkfs_time
/* time of filesystem creation */;
36 unsigned int block_size
;
37 unsigned int fragments
;
38 unsigned int fragment_table_start_2
;
42 long long inode_table_start
;
43 long long directory_table_start
;
44 long long fragment_table_start
;
45 long long lookup_table_start
;
46 } __attribute__ ((packed
));
48 #endif /* __SQUASHFS_FS_H */