git/reftable
Karthik Nayak e1a01d656c reftable: add code to facilitate consistency checks
The `git refs verify` command is used to run consistency checks on the
reference backends. This command is also invoked when users run 'git
fsck'. While the files-backend has some fsck checks added, the reftable
backend lacks such checks. Let's add the required infrastructure and a
check to test for the files present in the reftable directory.

Since the reftable library is treated as an independent library we
should ensure that the library code works independently without
knowledge about Git's internals. To do this, add both 'reftable/fsck.c'
and 'reftable/reftable-fsck.h'. Which provide an entry point
'reftable_fsck_check' for running fsck checks over a provided reftable
stack. The callee provides the function with callbacks to handle issue
and information reporting.

The added check, goes over all tables in the reftable stack validates
that they have a valid name. It not, it raises an error.

While here, move 'reftable/error.o' in the Makefile to retain
lexicographic ordering.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2025-10-06 10:22:46 -07:00
..
LICENSE
basics.c reftable: check for trailing newline in 'tables.list' 2025-10-06 10:22:45 -07:00
basics.h reftable: check for trailing newline in 'tables.list' 2025-10-06 10:22:45 -07:00
block.c Merge branch 'ps/reftable-read-block-perffix' 2025-05-19 16:02:48 -07:00
block.h Merge branch 'ps/reftable-api-revamp' 2025-04-29 14:21:30 -07:00
blocksource.c
blocksource.h
constants.h reftable/constants: make block types part of the public interface 2025-04-07 14:53:12 -07:00
error.c
fsck.c reftable: add code to facilitate consistency checks 2025-10-06 10:22:46 -07:00
iter.c reftable/constants: make block types part of the public interface 2025-04-07 14:53:12 -07:00
iter.h reftable/block: rename `block_reader` to `reftable_block` 2025-04-07 14:53:10 -07:00
merged.c reftable/constants: make block types part of the public interface 2025-04-07 14:53:12 -07:00
merged.h
pq.c
pq.h
record.c Merge branch 'ps/reftable-api-revamp' 2025-04-29 14:21:30 -07:00
record.h
reftable-basics.h reftable/block: create public interface for reading blocks 2025-04-07 14:53:11 -07:00
reftable-block.h reftable: fix perf regression when reading blocks of unwanted type 2025-05-12 10:55:24 -07:00
reftable-blocksource.h
reftable-constants.h reftable/constants: make block types part of the public interface 2025-04-07 14:53:12 -07:00
reftable-error.h
reftable-fsck.h reftable: add code to facilitate consistency checks 2025-10-06 10:22:46 -07:00
reftable-iterator.h
reftable-merged.h
reftable-record.h
reftable-stack.h
reftable-table.h reftable/table: move printing logic into test helper 2025-04-07 14:53:13 -07:00
reftable-writer.h
stack.c reftable: check for trailing newline in 'tables.list' 2025-10-06 10:22:45 -07:00
stack.h
system.c
system.h Merge branch 'ps/reftable-api-revamp' 2025-04-29 14:21:30 -07:00
table.c reftable: fix perf regression when reading blocks of unwanted type 2025-05-12 10:55:24 -07:00
table.h reftable/table: add `reftable_table` to the public interface 2025-04-07 14:53:12 -07:00
tree.c
tree.h
writer.c Merge branch 'ly/reftable-writer-leakfix' 2025-05-19 16:02:47 -07:00
writer.h