git: hammer2 - Add debugging

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Dec 9 10:28:02 PST 2025


commit 5f49e876b9fce2ca7d5450bd23a59daee6677625
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Dec 7 13:49:15 2025 -0800

    hammer2 - Add debugging
    
    * Debug situations where the CRC fails.  Print enough information
      for us to poke around and compare the in-kernel buffer against
      the disk buffer.
    
      All instances to date where hammer2 has detected CRC corruption
      has been due to in-memory corruption, source as yet undetermined.
    
    * Usually hammer2 refuses to operate on the file/directory in
      question until the buffer cache buffer with the in-memory error
      is recycled or the machine is rebooted, avoiding corruption.
      But it is possible that hammer2 might miss an in-memory
      corruption event in some instances (occurring after the CRC
      check, for example).

Summary of changes:
 sys/vfs/hammer2/hammer2_chain.c | 27 ++++++++++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5f49e876b9fce2ca7d5450bd23a59daee6677625


-- 
DragonFly BSD source repository


More information about the Commits mailing list