Skip to content

btrfs-progs: mkfs: fix mkfs --rootdir size problem

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs-progs: fix wrong chunk profile for do_chunk_alloc()extent-tree.c+10 -41 reply
2/2btrfs-progs: mkfs-tests: Add test case to verify the --rootdir size limittests/mkfs-tests/021-rootdir-size/test.sh+22 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAnand Jain
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] btrfs-progs: mkfs: fix mkfs --rootdir size problem

There is a bug report that mkfs.btrfs with -b limit, -d dup, and --rootdir with some contents filled, leads to unexpected ENOSPC.

It turns out that, the new chunk allocation code is broken quite some time ago, and by coincident we're using SINGLE data profile by default, it doesn't get exposed through existing test cases.

The patchset will fix it and add corresponding test case for it.

Qu Wenruo (2):
btrfs-progs: fix wrong chunk profile for do_chunk_alloc()
btrfs-progs: mkfs-tests: Add test case to verify the --rootdir size
limit

 extent-tree.c                             | 14 ++++++++++----
 tests/mkfs-tests/021-rootdir-size/test.sh | 22 ++++++++++++++++++++++
 2 files changed, 32 insertions(+), 4 deletions(-)
 create mode 100755 tests/mkfs-tests/021-rootdir-size/test.sh
Signature · 1 line
2.27.0