Renamed ckcksums -> ckdatacksums
To clarify this only checks data reads, and to makes space for future theoretical ck-operations: - ckmetaredund - likely - ckdataredund - unlikely, expensive - ckmetacksums - unlikely, expensive - ckdatacksums - implemented This also tweaks the relevant mount/format/info flags a bit: LFS_M_CKPROGS 0x00100000 Check progs by reading back progged data LFS_M_CKFETCHES 0x00200000 Check block checksums before first use LFS_M_CKPARITY 0x00400000 Check metadata tag parity bits LFS_M_CKMETAREDUND+ 0x01000000 Check metadata redund blocks on reads LFS_M_CKDATAREDUND* 0x02000000 Check data redund blocks on reads LFS_M_CKMETACKSUMS* 0x04000000 Check metadata checksums on reads LFS_M_CKDATACKSUMS 0x08000000 Check data checksums on reads +Planned *Hypothetical No code changes.
This commit is contained in:
+3
-3
@@ -156,10 +156,10 @@ extern "C"
|
||||
#define LFS_IFDEF_CKPARITY(a, b) (b)
|
||||
#endif
|
||||
|
||||
#ifdef LFS_CKCKSUMS
|
||||
#define LFS_IFDEF_CKCKSUMS(a, b) (a)
|
||||
#ifdef LFS_CKDATACKSUMS
|
||||
#define LFS_IFDEF_CKDATACKSUMS(a, b) (a)
|
||||
#else
|
||||
#define LFS_IFDEF_CKCKSUMS(a, b) (b)
|
||||
#define LFS_IFDEF_CKDATACKSUMS(a, b) (b)
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user