• Jan Schmidt's avatar
    btrfs scrub: add fixup code for errors on nodatasum files · 0ef8e451
    Jan Schmidt authored
    This removes a FIXME comment and introduces the first part of nodatasum
    fixup: It gets the corresponding inode for a logical address and triggers a
    regular readpage for the corrupted sector.
    
    Once we have on-the-fly error correction our error will be automatically
    corrected. The correction code is expected to clear the newly introduced
    EXTENT_DAMAGED flag, making scrub report that error as "corrected" instead
    of "uncorrectable" eventually.
    Signed-off-by: default avatarJan Schmidt <list.btrfs@jan-o-sch.net>
    0ef8e451
scrub.c 42.8 KB