From 69c0f7749aad857f6f9f6628a7e8d1d3e0dcb541 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 21 Feb 2020 03:35:08 +0100 Subject: Clarify directory header counter in format documentation Signed-off-by: David Oberhollenzer --- doc/format.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'doc/format.txt') 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 | -- cgit v1.2.3