Skip to content

RFC btrfs-progs: add support for device role-based chunk allocation

Anand Jain linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest14 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14btrfs-progs: minor spelling correction in the list-chunk help textcmds/inspect.c+1 -10 replies
2/14btrfs-progs: refactor devid comparison functioncmds/filesystem.c common/device-utils.c common/device-utils.h +1 more+15 -230 replies
3/14btrfs-progs: rename local dev_list to devices in btrfs_alloc_chunkkernel-shared/volumes.c+7 -70 replies
4/14btrfs-progs: mkfs: prepare to merge duplicate if-else blocksmkfs/main.c+1 -10 replies
5/14btrfs-progs: mkfs: eliminate duplicate code in if-elsemkfs/main.c+16 -330 replies
6/14btrfs-progs: mkfs: refactor test_num_disk_vs_raid - split data and metadatacommon/utils.c mkfs/common.h mkfs/main.c+18 -220 replies
7/14btrfs-progs: mkfs: device argument handling with a listmkfs/main.c+61 -210 replies
8/14btrfs-progs: import device role handling from the kernelkernel-shared/volumes.c kernel-shared/volumes.h+45 -00 replies
9/14btrfs-progs: mkfs: introduce device roles in device pathsmkfs/main.c+52 -60 replies
10/14btrfs-progs: sort devices by role before using themcommon/device-utils.c common/device-utils.h kernel-shared/volumes.c +2 more+111 -00 replies
11/14btrfs-progs: helper for the device role within dev_item::typemkfs/main.c+38 -00 replies
12/14btrfs-progs: mkfs: persist device roles to dev_item::typecommon/device-scan.c common/device-scan.h mkfs/common.c +2 more+16 -70 replies
13/14btrfs-progs: update device add ioctl with device typecmds/device.c+46 -110 replies
14/14btrfs-progs: disable exclusive metadata/data device rolesmkfs/main.c+8 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 00/14] btrfs-progs: add support for device role-based chunk allocation

Adds cleanup, fixes, and device role support to enable more efficient kernel chunk allocation based on device perforamnce.

Anand Jain (14):
btrfs-progs: minor spelling correction in the list-chunk help text
btrfs-progs: refactor devid comparison function
btrfs-progs: rename local dev_list to devices in btrfs_alloc_chunk
btrfs-progs: mkfs: prepare to merge duplicate if-else blocks
btrfs-progs: mkfs: eliminate duplicate code in if-else
btrfs-progs: mkfs: refactor test_num_disk_vs_raid - split data and
metadata
btrfs-progs: mkfs: device argument handling with a list
btrfs-progs: import device role handling from the kernel
btrfs-progs: mkfs: introduce device roles in device paths
btrfs-progs: sort devices by role before using them
btrfs-progs: helper for the device role within dev_item::type
btrfs-progs: mkfs: persist device roles to dev_item::type
btrfs-progs: update device add ioctl with device type
btrfs-progs: disable exclusive metadata/data device roles

 cmds/device.c           |  57 +++++--
 cmds/filesystem.c       |  15 --
 cmds/inspect.c          |   2 +-
 common/device-scan.c    |   4 +-
 common/device-scan.h    |   2 +-
 common/device-utils.c   |  46 ++++++
 common/device-utils.h   |   3 +
 common/utils.c          |  30 ++--
 kernel-shared/volumes.c |  40 ++++-
 kernel-shared/volumes.h |  26 ++++
 mkfs/common.c           |   2 +-
 mkfs/common.h           |   6 +-
 mkfs/main.c             | 324 +++++++++++++++++++++++++++++++---------
 13 files changed, 430 insertions(+), 127 deletions(-)
Signature · 1 line
2.49.0