Skip to content

Commit 5885367

Browse files
jeffhostetlergitster
authored andcommitted
index-format.txt: document v2 format of file system monitor extension
Update the documentation of the file system monitor extension to describe version 2. The format was extended to support opaque tokens in: 56c6910 fsmonitor: change last update timestamp on the index_state to opaque token Signed-off-by: Jeff Hostetler <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c9a33e5 commit 5885367

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Documentation/technical/index-format.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,18 @@ The remaining data of each directory block is grouped by type:
304304

305305
The extension starts with
306306

307-
- 32-bit version number: the current supported version is 1.
307+
- 32-bit version number: the current supported versions are 1 and 2.
308308

309-
- 64-bit time: the extension data reflects all changes through the given
309+
- (Version 1)
310+
64-bit time: the extension data reflects all changes through the given
310311
time which is stored as the nanoseconds elapsed since midnight,
311312
January 1, 1970.
312313

314+
- (Version 2)
315+
A null terminated string: an opaque token defined by the file system
316+
monitor application. The extension data reflects all changes relative
317+
to that token.
318+
313319
- 32-bit bitmap size: the size of the CE_FSMONITOR_VALID bitmap.
314320

315321
- An ewah bitmap, the n-th bit indicates whether the n-th index entry

0 commit comments

Comments
 (0)