btrfs-progs: mkfs: fix mkfs --rootdir size problem
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | btrfs-progs: fix wrong chunk profile for do_chunk_alloc()extent-tree.c | +10 | 1 reply | |
| 2/2 | btrfs-progs: mkfs-tests: Add test case to verify the --rootdir size limittests/ | +22 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Anand Jain |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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