mbox series

[0/3] btrfs-progs: btrfstune --remove-simple-quota

Message ID cover.1720732480.git.boris@bur.io (mailing list archive)
Headers show
Series btrfs-progs: btrfstune --remove-simple-quota | expand

Message

Boris Burkov July 11, 2024, 9:18 p.m. UTC
To be able to nuke simple quotas entirely if you decide you don't want
them (and especially the OWNER_REFs) in your filesystem after all.

If you run
btrfstune --remove-simple-quota <dev>
on an unmounted filesystem, it will be as if simple quotas never existed
on that filesystem.

Boris Burkov (3):
  btrfs-progs: add a helper for clearing all the items in a tree
  btrfs-progs: btrfstune: fix documentation for --enable-simple-quota
  btrfs-progs: btrfstune: add ability to remove squotas

 kernel-shared/disk-io.c                       |  39 +++++
 kernel-shared/disk-io.h                       |   2 +
 kernel-shared/free-space-tree.c               |  42 +----
 .../065-btrfstune-simple-quota/test.sh        |  33 ++++
 tune/main.c                                   |  18 +-
 tune/quota.c                                  | 160 ++++++++++++++++++
 tune/tune.h                                   |   1 +
 7 files changed, 253 insertions(+), 42 deletions(-)
 create mode 100755 tests/misc-tests/065-btrfstune-simple-quota/test.sh