All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH DRAFT 0/6] btrfs-progs: partial support for WRITE_INTENT_BITMAP compat RO flag
@ 2022-06-14 22:56 Qu Wenruo
  2022-06-14 22:56 ` [PATCH DRAFT 1/6] btrfs-progs: introduce a new compat RO flag, EXTRA_SUPER_RESERVED Qu Wenruo
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Qu Wenruo @ 2022-06-14 22:56 UTC (permalink / raw)
  To: linux-btrfs

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(-)

-- 
2.36.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-06-14 22:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-14 22:56 [PATCH DRAFT 0/6] btrfs-progs: partial support for WRITE_INTENT_BITMAP compat RO flag Qu Wenruo
2022-06-14 22:56 ` [PATCH DRAFT 1/6] btrfs-progs: introduce a new compat RO flag, EXTRA_SUPER_RESERVED Qu Wenruo
2022-06-14 22:56 ` [PATCH DRAFT 2/6] btrfs-progs: mkfs: add support for extra-super-reserved runtime flag Qu Wenruo
2022-06-14 22:56 ` [PATCH DRAFT 3/6] btrfs-progs: print-tree: remove duplicated definition for compat RO flags Qu Wenruo
2022-06-14 22:56 ` [PATCH DRAFT 4/6] btrfs-progs: print-tree: support btrfs_super_block::reserved_bytes Qu Wenruo
2022-06-14 22:56 ` [PATCH DRAFT 5/6] btrfs-progs: check: add extra warning for dev extents inside the reserved range Qu Wenruo
2022-06-14 22:56 ` [PATCH DRAFT 6/6] btrfs-progs: introduce the experimental compat RO flag, WRITE_INTENT_BITMAP Qu Wenruo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.