From bb7055ec21bc89814d92683cc40a9f66812aeb84 Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Tue, 4 Mar 2008 11:23:32 -0500 Subject: [PATCH] Add some extra debugging around file data checksum failures --- file-item.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/file-item.c b/file-item.c index 2639901..8b85f7a 100644 --- a/file-item.c +++ b/file-item.c @@ -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]); -- 2.11.4.GIT