mbox series

[v3,0/8] btrfs-progs: simple quotas

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

Message

Boris Burkov Sept. 27, 2023, 5:46 p.m. UTC
btrfs-progs changes for supporting simple quotas. Notably:
btrfs quota can enable squota via ioctl
mkfs can create an fs with squota enabled
btrfstune can enable squota
btrfs inspect commands dump squota fields
btrfs check validates and repairs squota invariants

---
Changelog:
v3:
* rebase
* update enum values to match kernel changes
v2:
* fixed messed up list numbering in doc
* fixed broken formatting
* used new command in enable ioctl instead of status value
* introduced new qgroup status flag to mkfs/tune

Boris Burkov (8):
  btrfs-progs: document squotas
  btrfs-progs: simple quotas kernel definitions
  btrfs-progs: simple quotas dump commands
  btrfs-progs: simple quotas fsck
  btrfs-progs: simple quotas mkfs
  btrfs-progs: simple quotas btrfstune
  btrfs-progs: simple quotas enable cmd
  btrfs-progs: tree-checker: handle owner ref items

 Documentation/btrfs-quota.rst    |   7 +-
 Documentation/ch-quota-intro.rst |  59 +++++++++++
 Documentation/mkfs.btrfs.rst     |   6 ++
 Makefile                         |   2 +-
 check/main.c                     |   2 +
 check/qgroup-verify.c            |  86 +++++++++++++++-
 cmds/quota.c                     |  39 +++++--
 common/fsfeatures.c              |   9 ++
 kernel-shared/accessors.h        |   9 ++
 kernel-shared/ctree.h            |   6 +-
 kernel-shared/print-tree.c       |  27 ++++-
 kernel-shared/tree-checker.c     |   2 +
 kernel-shared/uapi/btrfs.h       |   3 +
 kernel-shared/uapi/btrfs_tree.h  |  16 ++-
 mkfs/main.c                      |  64 ++++++++++--
 tune/main.c                      |  18 +++-
 tune/quota.c                     | 172 +++++++++++++++++++++++++++++++
 tune/tune.h                      |   3 +
 18 files changed, 504 insertions(+), 26 deletions(-)
 create mode 100644 tune/quota.c

Comments

David Sterba Oct. 2, 2023, 4:20 p.m. UTC | #1
On Wed, Sep 27, 2023 at 10:46:41AM -0700, Boris Burkov wrote:
> btrfs-progs changes for supporting simple quotas. Notably:
> btrfs quota can enable squota via ioctl
> mkfs can create an fs with squota enabled
> btrfstune can enable squota
> btrfs inspect commands dump squota fields
> btrfs check validates and repairs squota invariants
> 
> ---
> Changelog:
> v3:
> * rebase
> * update enum values to match kernel changes
> v2:
> * fixed messed up list numbering in doc
> * fixed broken formatting
> * used new command in enable ioctl instead of status value
> * introduced new qgroup status flag to mkfs/tune
> 
> Boris Burkov (8):
>   btrfs-progs: document squotas
>   btrfs-progs: simple quotas kernel definitions
>   btrfs-progs: simple quotas dump commands
>   btrfs-progs: simple quotas fsck
>   btrfs-progs: simple quotas mkfs
>   btrfs-progs: simple quotas btrfstune
>   btrfs-progs: simple quotas enable cmd
>   btrfs-progs: tree-checker: handle owner ref items

I've added the series to devel so we can do proper testing, however
there are several style and convention problems, like the command line
opiton names or long/short style. It'll be fixed in the branch.