Started work on proper tests.
STILL HAVING STUPID UNEXPLAINABLE NIL POINTERS.
This commit is contained in:
+5
-1
@@ -24,7 +24,7 @@ type superblock struct {
|
||||
ExportTableStart uint64
|
||||
}
|
||||
|
||||
func (s superblock) hasMagic() bool {
|
||||
func (s superblock) checkMagic() bool {
|
||||
return s.Magic == 0x73717368
|
||||
}
|
||||
|
||||
@@ -32,6 +32,10 @@ func (s superblock) checkBlockLog() bool {
|
||||
return s.BlockLog == uint16(math.Log2(float64(s.BlockSize)))
|
||||
}
|
||||
|
||||
func (s superblock) checkVersion() bool {
|
||||
return s.VerMaj == 4 && s.VerMin == 0
|
||||
}
|
||||
|
||||
func (s superblock) uncompressedInodes() bool {
|
||||
return s.Flags&0x1 == 0x1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user