Commit 1432189
btrfs-progs: fix corruption when doing mkfs.btrfs with -O ^no-holes
Commit 44b83ff introduces a bug: when we encountered a hole in the
source file, we're creating a explicit file extent.
But as we're zero-initializing the struct btrfs_file_extent_item, we're
setting its type to BTRFS_FILE_EXTENT_INLINE. Fix this by forcing it to
be BTRFS_FILE_EXTENT_REG.
Signed-off-by: Mark Harmstone <mark@harmstone.com>1 parent f82b83e commit 1432189
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
819 | 819 | | |
820 | 820 | | |
821 | 821 | | |
| 822 | + | |
822 | 823 | | |
823 | 824 | | |
824 | 825 | | |
| |||
0 commit comments