Skip to content

btrfs-progs: add support ext4 unwritten file extent

Anand Jain linux-btrfs linux-ext4 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 6 repliesIn review
  2. v14 patches 9 repliesSuperseded

Changes in v2 from the cover letter

Fix per review comments.
Identify and fail safe prealloc merged with regular blocks.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4btrfs-progs: convert: refactor ext2_create_file_extents add argument ext2_inodeconvert/source-ext2.c+3 -10 replies
2/4btrfs-progs: convert: struct blk_iterate_data, add ext2-specific file inode pointersconvert/source-ext2.c convert/source-ext2.h convert/source-fs.h+15 -00 replies
3/4btrfs-progs: convert: refactor __btrfs_record_file_extent to add a prealloc flagcommon/extent-tree-utils.c common/extent-tree-utils.h convert/main.c +3 more+17 -130 replies
4/4btrfs-progs: convert: support ext2 unwritten file data extentsconvert/source-ext2.c convert/source-ext2.h convert/source-fs.c +1 more+75 -26 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] btrfs-progs: add support ext4 unwritten file extent

v2:
Fix per review comments.
Identify and fail safe prealloc merged with regular blocks.

These patches add support for the ext4 file data unwritten/preallocated extents. Patches 1-3 are preparatory patches, and patch 4 adds the missing feature.

Patch 4 is marked as RFC because this patch is tested with limited variants of the file extents with unwritten flag.

Anand Jain (4):
btrfs-progs: convert: refactor ext2_create_file_extents add argument
ext2_inode
btrfs-progs: convert: struct blk_iterate_data, add ext2-specific file
inode pointers
btrfs-progs: convert: refactor __btrfs_record_file_extent to add a
prealloc flag
btrfs-progs: convert: support ext2 unwritten file data extents

 common/extent-tree-utils.c |  8 +++---
 common/extent-tree-utils.h |  2 +-
 convert/main.c             | 10 ++++---
 convert/source-ext2.c      | 59 +++++++++++++++++++++++++++++++++++++-
 convert/source-ext2.h      |  9 ++++++
 convert/source-fs.c        | 26 +++++++++++++++--
 convert/source-fs.h        |  3 ++
 convert/source-reiserfs.c  |  2 +-
 mkfs/rootdir.c             |  3 +-
 9 files changed, 108 insertions(+), 14 deletions(-)
Signature · 1 line
2.39.3