Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH v2 0/5] btrfs-progs: zoned devices support for bgt feature
@ 2024-04-02 22:07 Qu Wenruo
  2024-04-02 22:07 ` [PATCH v2 1/5] btrfs-progs: tune: add the missing newline for --convert-from-block-group-tree Qu Wenruo
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Qu Wenruo @ 2024-04-02 22:07 UTC (permalink / raw)
  To: linux-btrfs

[CHANGELOG]
v2:
- Remove the header cleanup for tune/main.c
  That would cause compiling error as our expertimental features
  still rely on that header.

[REPO]
https://github.com/adam900710/btrfs-progs/tree/zoned_bgt

There is a bug report that, the following tool would fail on zone
devices:

- mkfs.btrfs -O block-group-tree
- btrfstune --convert-to-block-group-tree|--convert-from-block-group-tree

The mkfs failure is caused by zoned incompatible pwrite() calls for
block group tree metadata.

The btrfstune failure is caused by the incorrectly opened fd.


Before fixing both bugs, do one small cleanup, as my later check on the
test case output finds a missing newline for btrfstune.

Then fixes for each bug, and new test cases for each bug.

Qu Wenruo (5):
  btrfs-progs: tune: add the missing newline for
    --convert-from-block-group-tree
  btrfs-progs: mkfs: use proper zoned compatible write for bgt feature
  btrfs-progs: tune: properly open zoned devices for RW
  btrfs-progs: tests-mkfs: add test case for zoned block group tree
    feature
  btrfs-progs: tests-misc: add a test case to check zoned bgt conversion

 mkfs/common.c                                 |  4 +-
 .../063-btrfstune-zoned-bgt/test.sh           | 55 +++++++++++++++++++
 tests/mkfs-tests/031-zoned-bgt/test.sh        | 40 ++++++++++++++
 tune/convert-bgt.c                            |  2 +-
 tune/main.c                                   |  6 +-
 5 files changed, 103 insertions(+), 4 deletions(-)
 create mode 100755 tests/misc-tests/063-btrfstune-zoned-bgt/test.sh
 create mode 100755 tests/mkfs-tests/031-zoned-bgt/test.sh

--
2.44.0


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

end of thread, other threads:[~2024-04-03 13:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-02 22:07 [PATCH v2 0/5] btrfs-progs: zoned devices support for bgt feature Qu Wenruo
2024-04-02 22:07 ` [PATCH v2 1/5] btrfs-progs: tune: add the missing newline for --convert-from-block-group-tree Qu Wenruo
2024-04-02 22:07 ` [PATCH v2 2/5] btrfs-progs: mkfs: use proper zoned compatible write for bgt feature Qu Wenruo
2024-04-02 22:07 ` [PATCH v2 3/5] btrfs-progs: tune: properly open zoned devices for RW Qu Wenruo
2024-04-02 22:07 ` [PATCH v2 4/5] btrfs-progs: tests-mkfs: add test case for zoned block group tree feature Qu Wenruo
2024-04-02 22:07 ` [PATCH v2 5/5] btrfs-progs: tests-misc: add a test case to check zoned bgt conversion Qu Wenruo
2024-04-03 13:50 ` [PATCH v2 0/5] btrfs-progs: zoned devices support for bgt feature David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox