RFC Add dummy RAID stripe tree entries for PREALLOC data
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | btrfs: introduce dummy RAID stripes for preallocated datafs/ fs/ include/ | +46 | 0 replies | |
| 2/2 | btrfs: insert dummy RAID stripe extents for preallocated datafs/ fs/ | +51 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC 0/2] Add dummy RAID stripe tree entries for PREALLOC data
This is an RFC implementation of Qu's request to be able to distinguish preallocated extents in the stripe tree for scrub.
It's not 100% working yet but only showing the basic "how it's going to look like".
I'm not really sure this is a better solution than returning ENOENT and ignoring it in scrub.
A third possibility would be to do a full backref walk on btrfs_map_block() error and then check if it's a preallocated extent.
Johannes Thumshirn (2):
btrfs: introduce dummy RAID stripes for preallocated data
btrfs: insert dummy RAID stripe extents for preallocated data
fs/btrfs/inode.c | 47 +++++++++++++++++++++++++++++++++ fs/btrfs/raid-stripe-tree.c | 47 +++++++++++++++++++++++++++++++++ fs/btrfs/raid-stripe-tree.h | 2 ++ include/uapi/linux/btrfs_tree.h | 1 + 4 files changed, 97 insertions(+)
Signature · 1 line
2.43.0