mbox series

[0/3,RFC] btrfs-progs: get/set allocation_hint for an unmounted filesystem

Message ID cover.1643313144.git.kreijack@inwind.it (mailing list archive)
Headers show
Series btrfs-progs: get/set allocation_hint for an unmounted filesystem | expand

Message

Goffredo Baroncelli Jan. 27, 2022, 7:57 p.m. UTC
From: Goffredo Baroncelli <kreijack@inwind.it>

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(-)