Yes. It detects the injected corruption. #btrfs scrub start --offline /dev/loop6 ERROR: data at bytenr 145293312 mirror 0 csum mismatch, have 0x790f1fe1 expect 0xa30cb5c5 ERROR: full stripe 145227776 RECOVERABLE: Data stripes corrupted, but P/Q is good
Scrub result: Tree bytes scrubbed: 131072 Tree extents scrubbed: 8 Data bytes scrubbed: 192512 Data extents scrubbed: 3 Data bytes without csum: 131072 Read error: 0 Verify error: 0 Csum error: 1 ---- Cheers, Lakshmipathi.G -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html