mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[FREELDR] Handle Btrfs sparse extents (#1959)
This commit is contained in:
parent
63e22b8287
commit
90ac794bf2
1 changed files with 7 additions and 0 deletions
|
@ -687,6 +687,13 @@ static u64 btrfs_read_extent_reg(struct btrfs_path *path, struct btrfs_file_exte
|
|||
if (size > dlen - offset)
|
||||
size = dlen - offset;
|
||||
|
||||
/* Handle sparse extent */
|
||||
if (extent->disk_bytenr == 0 && extent->disk_num_bytes == 0)
|
||||
{
|
||||
RtlZeroMemory(out, size);
|
||||
return size;
|
||||
}
|
||||
|
||||
physical = logical_physical(extent->disk_bytenr);
|
||||
if (physical == INVALID_ADDRESS)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue