btrfs-progs: partial support for WRITE_INTENT_BITMAP compat RO flag
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | btrfs-progs: introduce a new compat RO flag, EXTRA_SUPER_RESERVEDkernel-shared/ kernel-shared/ kernel-shared/ | +35 | 0 replies | |
| 2/6 | btrfs-progs: mkfs: add support for extra-super-reserved runtime flagcommon/ common/ mkfs/ +1 more | +34 | 0 replies | |
| 3/6 | btrfs-progs: print-tree: remove duplicated definition for compat RO flagskernel-shared/ | +1 | 0 replies | |
| 4/6 | btrfs-progs: print-tree: support btrfs_super_block::reserved_byteskernel-shared/ | +6 | 0 replies | |
| 5/6 | btrfs-progs: check: add extra warning for dev extents inside the reserved rangecheck/ check/ kernel-shared/ | +40 | 0 replies | |
| 6/6 | btrfs-progs: introduce the experimental compat RO flag, WRITE_INTENT_BITMAPcommon/ common/ kernel-shared/ +4 more | +51 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH DRAFT 0/6] btrfs-progs: partial support for WRITE_INTENT_BITMAP compat RO flag
This is the btrfs-progs counter-part to add placeholder for WRITE_INTENT_BITMAP compat RO flag.
The same as kernel, this will have two compat RO flags:
- EXTRA_SUPER_RESERVED
To indicate exactly how many bytes are reserved at the beginning of each device.
By default mkfs.btrfs will reserve another 1MiB in addition to the existing 1MiB.
So that later write-intent-bitmap can utilize the extra space. (although write-intent-bitmap may only utilize at most 64KiB).
- WRITE_INTENT_BITMAP
Just to indicate if we have write intent bitmap.
Currently it doesn't do any real work (aka, just a place holder).
Thus the patchset is mostly for EXTRA_SUPER_RESERVED, including the following part:
- Add the needed definition
- Add mkfs support
- Add print-tree support
- Add extra warning and solution for btrfsck
For EXTRA_SUPER_RESERVED only, it's no different than the initial 1MiB reservation, kernel can handle it without problem.
The extra check support will just do warning, and at the end, output a solution (using balance with drange filter).
Qu Wenruo (6):
btrfs-progs: introduce a new compat RO flag, EXTRA_SUPER_RESERVED
btrfs-progs: mkfs: add support for extra-super-reserved runtime flag
btrfs-progs: print-tree: remove duplicated definition for compat RO
flags
btrfs-progs: print-tree: support btrfs_super_block::reserved_bytes
btrfs-progs: check: add extra warning for dev extents inside the
reserved range
btrfs-progs: introduce the experimental compat RO flag,
WRITE_INTENT_BITMAP
check/main.c | 17 ++++++++++++++++ check/mode-lowmem.c | 22 +++++++++++++++++++++ common/fsfeatures.c | 19 ++++++++++++++++++ common/fsfeatures.h | 2 ++ kernel-shared/ctree.h | 40 ++++++++++++++++++++++++++++++++++++-- kernel-shared/disk-io.c | 18 +++++++++++++++++ kernel-shared/print-tree.c | 11 ++++++++--- kernel-shared/volumes.c | 4 ++++ mkfs/common.c | 25 ++++++++++++++++++++++++ mkfs/main.c | 14 +++++++++++++ 10 files changed, 167 insertions(+), 5 deletions(-)
Signature · 1 line
2.36.1