Take extent offset in account on uncompressed extents

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-04-11 07:52:39 +02:00
parent 228f95a250
commit 565f076311

View file

@ -989,6 +989,7 @@ grub_btrfs_extent_read (struct grub_btrfs_data *data,
}
err = grub_btrfs_read_logical (data,
grub_le_to_cpu64 (data->extent->laddr)
+ grub_le_to_cpu64 (data->extent->offset)
+ extoff,
buf, csize);
if (err)