Renamed LFS_CKMETAPARITY and LFS_CKDATACKSUMREADS

- LFS_CKPARITY -> LFS_CKMETAPARITY
- LFS_CKDATACKSUMS -> LFS_CKDATACKSUMREADS

The goal here is to provide hints for 1. what is being checked (META,
DATA, etc), and 2. on what operation (FETCHES, PROGS, READS, etc).

Note that LFS_CKDATACKSUMREADS is intended to eventually be a part of a
set of flags that can pull off closed fully-checked reads:

- LFS_CKMETAREDUNDREADS - Check data checksums on reads
- LFS_CKDATACKSUMREADS - Check metadata redund blocks on reads
- LFS_CKREADS - LFS_CKMETAREDUNDREADS + LFS_CKDATACKSUMREADS

Also it's probably not a bad idea for LFS_CKMETAPARITY to be harder to
use. It's really not worth enabling unless you understand its
limitations (<1 bit of error detection, yay).

No code changes.
This commit is contained in:
Christopher Haster
2025-05-24 21:42:05 -05:00
parent 6d9c077261
commit f5dd6f69e8
6 changed files with 230 additions and 191 deletions
+16 -16
View File
@@ -38,11 +38,11 @@
#ifndef LFS_CKFETCHES
#define LFS_CKFETCHES
#endif
#ifndef LFS_CKPARITY
#define LFS_CKPARITY
#ifndef LFS_CKMETAPARITY
#define LFS_CKMETAPARITY
#endif
#ifndef LFS_CKDATACKSUMS
#define LFS_CKDATACKSUMS
#ifndef LFS_CKDATACKSUMREADS
#define LFS_CKDATACKSUMREADS
#endif
#ifndef LFS_GC
#define LFS_GC
@@ -65,14 +65,14 @@
#ifdef LFS_YES_CKFETCHES
#define LFS_CKFETCHES
#endif
#ifdef LFS_YES_CKPARITY
#define LFS_CKPARITY
#ifdef LFS_YES_CKMETAPARITY
#define LFS_CKMETAPARITY
#endif
#ifdef LFS_YES_CKDATACKSUMS
#define LFS_CKDATACKSUMS
#ifdef LFS_YES_CKDATACKSUMREADS
#define LFS_CKDATACKSUMREADS
#endif
#ifdef LFS_YES_CKDATACKSUMS
#define LFS_CKDATACKSUMS
#ifdef LFS_YES_GC
#define LFS_GC
#endif
// LFS_NO_LOG disables all logging macros
@@ -240,16 +240,16 @@
#define LFS_IFDEF_CKFETCHES(a, b) (b)
#endif
#ifdef LFS_CKPARITY
#define LFS_IFDEF_CKPARITY(a, b) (a)
#ifdef LFS_CKMETAPARITY
#define LFS_IFDEF_CKMETAPARITY(a, b) (a)
#else
#define LFS_IFDEF_CKPARITY(a, b) (b)
#define LFS_IFDEF_CKMETAPARITY(a, b) (b)
#endif
#ifdef LFS_CKDATACKSUMS
#define LFS_IFDEF_CKDATACKSUMS(a, b) (a)
#ifdef LFS_CKDATACKSUMREADS
#define LFS_IFDEF_CKDATACKSUMREADS(a, b) (a)
#else
#define LFS_IFDEF_CKDATACKSUMS(a, b) (b)
#define LFS_IFDEF_CKDATACKSUMREADS(a, b) (b)
#endif
#ifdef LFS_GC