mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-27 07:53:27 +00:00
Add some extra debugging around file data checksum failures
This commit is contained in:
parent
84696d75db
commit
bb7055ec21
@ -385,6 +385,11 @@ csum:
|
||||
found:
|
||||
csum_result = btrfs_csum_data(root, data, csum_result, len);
|
||||
btrfs_csum_final(csum_result, (char *)&csum_result);
|
||||
if (csum_result == 0) {
|
||||
printk("csum result is 0 for inode %Lu offset %Lu\n",
|
||||
objectid, offset);
|
||||
}
|
||||
|
||||
write_extent_buffer(leaf, &csum_result, (unsigned long)item,
|
||||
BTRFS_CRC32_SIZE);
|
||||
btrfs_mark_buffer_dirty(path->nodes[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user