aboutsummaryrefslogtreecommitdiff
path: root/core/storage.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/storage.go')
-rw-r--r--core/storage.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/storage.go b/core/storage.go
index 8208006..7f2dac6 100644
--- a/core/storage.go
+++ b/core/storage.go
@@ -104,7 +104,7 @@ func ReadHeader(partition string) (Header, error) {
}
header.Signature = fmt.Sprintf("untrusted comment: fsverify\n%s\ntrusted comment: fsverify\n%s\n", string(UntrustedHash), string(TrustedHash))
- header.FilesystemSize = int(binary.BigEndian.Uint16(FilesystemSize))
+ header.FilesystemSize = int(binary.BigEndian.Uint32(FilesystemSize))
header.TableSize = int(binary.BigEndian.Uint32(TableSize))
header.FilesystemUnit = parseUnitSpec(FilesystemUnit)
header.TableUnit = parseUnitSpec(TableUnit)