Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Qu Wenruo <wqu@suse.com>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 0/6] btrfs-progs: zoned devices support for bgt feature
Date: Tue, 26 Mar 2024 10:52:40 +1030	[thread overview]
Message-ID: <cover.1711412540.git.wqu@suse.com> (raw)

[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 two small cleanups, one caught by clangd LSP
server, the other caught by my later check on the test case output (a
missing newline).

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

Qu Wenruo (6):
  btrfs-progs: remove unused header for tune/main.c
  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                                   |  7 ++-
 5 files changed, 103 insertions(+), 5 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


             reply	other threads:[~2024-03-26  0:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-26  0:22 Qu Wenruo [this message]
2024-03-26  0:22 ` [PATCH 1/6] btrfs-progs: remove unused header for tune/main.c Qu Wenruo
2024-04-02 18:42   ` David Sterba
2024-04-02 21:30     ` Qu Wenruo
2024-03-26  0:22 ` [PATCH 2/6] btrfs-progs: tune: add the missing newline for --convert-from-block-group-tree Qu Wenruo
2024-03-26  0:22 ` [PATCH 3/6] btrfs-progs: mkfs: use proper zoned compatible write for bgt feature Qu Wenruo
2024-03-26  0:22 ` [PATCH 4/6] btrfs-progs: tune: properly open zoned devices for RW Qu Wenruo
2024-03-26  0:22 ` [PATCH 5/6] btrfs-progs: tests-mkfs: add test case for zoned block group tree feature Qu Wenruo
2024-03-26  0:22 ` [PATCH 6/6] btrfs-progs: tests-misc: add a test case to check zoned bgt conversion Qu Wenruo
2024-03-26 16:53 ` [PATCH 0/6] btrfs-progs: zoned devices support for bgt feature Johannes Thumshirn
2024-03-27  1:23 ` Naohiro Aota
2024-03-27 23:52 ` David Sterba

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1711412540.git.wqu@suse.com \
    --to=wqu@suse.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox