Found some good squashfs documentation so I can start work

This commit is contained in:
Caleb Gardner
2020-11-10 03:48:03 -06:00
parent c00ec36268
commit 40541575f8
6 changed files with 2247 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
package squashfs
//Descriptions provided by https://dr-emann.github.io/squashfs/
type superblock struct {
Magic uint32 //Magic will be 0x73717368 if it's a legit Squashfs filesystem
Inodes uint32 //Inodes is the number of inodes in the inodes table
MkfsTime int32 //MkfsTime is when archive was created
BlockSize uint32 //BlockSize is the size of data blocks in bytes
Fragments uint32 //Fragments is the number of entries in fragment table
Compression uint16 //Compression is what type of compression is used
BlockLog uint16 //BlockLog should be log base 2 of BlockSize. If not then the squash might be corrupt
Flags uint16 //Flags are the superblock's flags
IDCount uint16 //IDCount is the number of IDs in the id lookup table
Major uint16
Minor uint16
RootInode Inode
BytesUsed int64
IDTableStart int64
XattrIDTableStart int64
InodeTableStart int64
DirectoryTableStart int64
FragmentTableStart int64
LookupTableStart int64
}