Skip to content

RFC btrfs-progs: get/set allocation_hint for an unmounted filesystem

Goffredo Baroncelli linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Rename btrfs_device->type to flagscmds/rescue-chunk-recover.c common/device-scan.c convert/common.c +7 more+20 -200 replies
2/3Rename dev_item.type in flags in the command output.kernel-shared/print-tree.c+2 -20 replies
3/3Read/change the allocation_hint prop when unmountedcmds/property.c+115 -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 0/3][RFC] btrfs-progs: get/set allocation_hint for an unmounted filesystem

From: Goffredo Baroncelli <[email protected]>

This patches set allows to change the allocation_hint even for an unmounted filesystem. It does that using the user space btrfs code.

Because the userspace btrfs code is unaware of the allocation_hint if a new (metadata) chunk allocation is required during the changing of this property, the new chunk is allocated without considering the allocation_hint ... hint.

Goffredo Baroncelli (3):
Rename btrfs_device->type to flags
Rename dev_item.type in flags in the command output. Read/change the allocation_hint prop when unmounted

 cmds/property.c             | 115 ++++++++++++++++++++++++++++++++++++
 cmds/rescue-chunk-recover.c |   2 +-
 common/device-scan.c        |   4 +-
 convert/common.c            |   2 +-
 image/main.c                |   6 +-
 kernel-shared/ctree.h       |   8 +--
 kernel-shared/disk-io.c     |   2 +-
 kernel-shared/print-tree.c  |   8 +--
 kernel-shared/volumes.c     |   6 +-
 kernel-shared/volumes.h     |   4 +-
 mkfs/common.c               |   2 +-
 11 files changed, 137 insertions(+), 22 deletions(-)
Signature · 1 line
2.34.1