aboutsummaryrefslogtreecommitdiff
path: root/fsverify-paper.md
diff options
context:
space:
mode:
authoraxtloss <axtlos@getcryst.al>2024-02-01 11:10:22 +0100
committeraxtloss <axtlos@getcryst.al>2024-02-01 11:10:22 +0100
commit2671b31f281bc308ee775266b9d9c3f16e5a18c4 (patch)
treec1652ce4ae5d4b506b9fa36756dc715b4c8a11c0 /fsverify-paper.md
parent28c6855530da8d7a4acaa525c0462812048b6ca2 (diff)
downloadfsverify-2671b31f281bc308ee775266b9d9c3f16e5a18c4.tar.gz
fsverify-2671b31f281bc308ee775266b9d9c3f16e5a18c4.tar.bz2
read database from partition
Diffstat (limited to 'fsverify-paper.md')
-rw-r--r--fsverify-paper.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/fsverify-paper.md b/fsverify-paper.md
index 0686c07..82b9cf8 100644
--- a/fsverify-paper.md
+++ b/fsverify-paper.md
@@ -2,14 +2,15 @@
The FsVerify partition contains a header with the necessary metadata for the filesystem verification, and a bbolt database containing all File and Directory nodes to be checked.
## Partition Header
-`<magic number> <signature> <filesystem size> <table size>`
+`<magic number> <signature> <filesystem size> <table size> <table unit>`
Field|Size|Purpose|Value
-----|----|-------|-----
magic number|2 bytes|sanity check|0xACAB
signature|302 bytes|minisign signature|
filesystem size|4 bytes|size of the original filesystem in gb
-table size|4 bytes| size of the table in mb
+table size|4 bytes| size of the table in \<table unit\>
+table unit|1 byte|unit of the table size|0x0: bytes, 0x1: kilobytes, 0x2: megabytes, 0x3: gigabytes, 0x4: terabytes, 0x5: petabytes
Due to the filesystem and table size field, which can go up to 0xFFFFFFFF (16777215), the maximum supported partition size and table size is 16777215gb (~16pb)