aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authoraxtloss <axtlos@getcryst.al>2024-02-17 22:18:25 +0100
committeraxtloss <axtlos@getcryst.al>2024-02-17 22:18:25 +0100
commit6a3db4c72485aba6187466005473e287f539e3ce (patch)
tree463ce5e3f04f8197cd40565e8ce35c0f98e6d694 /core
parent61cc5e9a02a38cd086d382e521509e85fecd6d07 (diff)
downloadfsverify-6a3db4c72485aba6187466005473e287f539e3ce.tar.gz
fsverify-6a3db4c72485aba6187466005473e287f539e3ce.tar.bz2
Clean up code
Diffstat (limited to 'core')
-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)