Skip to contentSkip to conversation

understanding csum tree

DISCUSSION Lakshmipathi.G 1 participant 1 message Nov 12, 2015 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hi -

I trying to understand csum tree and its entries.

1) create a filenamed 'ab' with 100KB of data. I can see csum entry for this:

item 0 key (EXTENT_CSUM EXTENT_CSUM 4239360) itemoff 3895 itemsize 100

2) created another named 'zb1' with 100KB of data. I can't find csum entry for this.Looks like item-0 is extended with csum of zb1.

item 0 key (EXTENT_CSUM EXTENT_CSUM 4239360) itemoff 3795 itemsize 200

If I need to read/print only the csum of 'zb1' file - how to achieve that? thanks!

btrfs-debug-tree output : http://pastebin.com/tzKLX2ZU
after creating zb1 file : http://pastebin.com/WzjJuzFB

Cheers,
Lakshmipathi.G