Skip to content

RFC Enable tmpfs quotas

[email protected] linux-fsdevel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Rename searched_dir->sd_dir to sd_isdirquotasys.c+3 -30 replies
2/3Add quotactl_fd() supportMakefile.am quotacheck.c quotaio.c +11 more+98 -592 replies
3/3Enable support for tmpfs quotasmntopt.h quotaio.c quotaio.h +6 more+55 -273 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 0/3] Enable tmpfs quotas

From: Carlos Maiolino <[email protected]>

This series enable quota tools to manage tmpfs user/group quotas now the kernel support is released in 6.6.

Honza, this is just a RFC as I'd like to know your input on the approach used here.

This series add 2 new helpers, one named do_quotactl(), which switches between quotactl() and quotactl_fd(), and the handle_quota() helper within quotaio, which passes quota_handle data to do_quotactl() depending on the filesystem associated with the mountpoint.

The first patch is just a cleanup.

So far I just did basic testing on this series, if you are fine with this approach, I'll polish it and quote Lukas as he also worked on it and deserves credit.

Thanks!

Carlos Maiolino (3):
Rename searched_dir->sd_dir to sd_isdir
Add quotactl_fd() support
Enable support for tmpfs quotas

 Makefile.am       |  1 +
 mntopt.h          |  1 +
 quotacheck.c      | 12 +++----
 quotaio.c         | 19 +++++++++--
 quotaio.h         |  2 ++
 quotaio_generic.c | 11 +++----
 quotaio_meta.c    |  3 +-
 quotaio_v1.c      | 11 +++----
 quotaio_v2.c      | 11 +++----
 quotaio_xfs.c     | 21 ++++++------
 quotaon.c         |  8 ++---
 quotaon_xfs.c     |  9 +++---
 quotastats.c      |  4 +--
 quotasync.c       |  2 +-
 quotasys.c        | 81 ++++++++++++++++++++++++++++++++++++-----------
 quotasys.h        |  3 ++
 16 files changed, 133 insertions(+), 66 deletions(-)
Signature · 1 line
2.43.0