diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-02-21 03:35:08 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-02-21 03:35:08 +0100 |
commit | 69c0f7749aad857f6f9f6628a7e8d1d3e0dcb541 (patch) | |
tree | 06cd6076f8aaa0d59b316d7db275ba691531050a /doc/format.txt | |
parent | 0841eb83042b59dfabed03f664d0a7b3d5921f59 (diff) |
Clarify directory header counter in format documentation
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'doc/format.txt')
-rw-r--r-- | doc/format.txt | 8 |
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 | |