Add some extra debugging around file data checksum failures

This commit is contained in:
Chris Mason 2008-03-04 11:23:32 -05:00 committed by David Woodhouse
parent 84696d75db
commit bb7055ec21
1 changed files with 5 additions and 0 deletions

View File

@ -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]);