Introduce fsquota package
This introduces a new fsquota package and
a few low-level support packages to simplify the
management of filesystem quotas.
To expose an API that's nice to use while staying
performant and safe the new fsinfo syscall is being
used. Since that syscall is not yet in mainline it has
been backported to our 5.6 kernel.
Test Plan:
Manually validated on our kernel, automated
tests are pending some Bazel work to be able to run them
inside our own kernel.
X-Origin-Diff: phab/D462
GitOrigin-RevId: bb463056589d2b13b7cf32d48ab0b884e70b1bad
diff --git a/third_party/linux/external.bzl b/third_party/linux/external.bzl
index 1690205..6057543 100644
--- a/third_party/linux/external.bzl
+++ b/third_party/linux/external.bzl
@@ -28,6 +28,10 @@
patches = [
# Enable built-in cmdline for efistub
"//third_party/linux/external:0001-x86-Allow-built-in-command-line-to-work-in-early-ker.patch",
+ # Add fsinfo() syscall
+ "//third_party/linux/external:0002-watch_queue-Introduce-a-non-repeating-system-unique-.patch",
+ "//third_party/linux/external:0003-fsinfo-Add-fsinfo-syscall-to-query-filesystem-inform.patch",
+ "//third_party/linux/external:0004-fsinfo-Allow-retrieval-of-superblock-devname-options.patch",
],
sha256 = sums[version],
strip_prefix = "linux-" + version,