aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-21 03:35:08 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-21 03:35:08 +0100
commit69c0f7749aad857f6f9f6628a7e8d1d3e0dcb541 (patch)
tree06cd6076f8aaa0d59b316d7db275ba691531050a
parent0841eb83042b59dfabed03f664d0a7b3d5921f59 (diff)
Clarify directory header counter in format documentation
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--doc/format.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/format.txt b/doc/format.txt
index b1d2df5..8c0c710 100644
--- a/doc/format.txt
+++ b/doc/format.txt
@@ -903,7 +903,13 @@
| | | store their inode number as a difference to this. |
+======+==============+======================================================+
- And is followed by entries that each have this structure:
+ The counter is stored off-by-one, i.e. a value of 0 indicates 1 entry follows.
+ This also makes it impossible to encode a size of 0, which wouldn't make any
+ sense. Empty directories simply have their size set to 0 in the inode instead,
+ so no extra dummy header has to be store or looked up.
+
+
+ The header is followed by multiple entries that each have this structure:
+======+==============+======================================================+
| Type | Name | Description |