From c64e25a8f46c8137f46612ed857c74947c0d0250 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 10 Dec 2025 11:54:52 -0800 Subject: [PATCH] linuxPackages.openafs: Patch for Linux kernel 6.18 Signed-off-by: Anders Kaseorg --- pkgs/servers/openafs/1.8/module.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkgs/servers/openafs/1.8/module.nix b/pkgs/servers/openafs/1.8/module.nix index fc8015cdc42a..f2f371a1d623 100644 --- a/pkgs/servers/openafs/1.8/module.nix +++ b/pkgs/servers/openafs/1.8/module.nix @@ -43,6 +43,24 @@ stdenv.mkDerivation { url = "https://github.com/openafs/openafs/commit/eb6753d93b930ad7d65772a9751117f6969a5e92.patch"; hash = "sha256-97/MdG9DrHEtOKCRLCTgl6ZEtqLUsaNs9LcAzcyrTF4="; }) + # Linux: mount_nodev removed, use new mount API + (fetchpatch { + url = "https://gerrit.openafs.org/changes/16646/revisions/93db75395149e1f0dbdc3a0572f58449dd9da98d/patch"; + decode = "base64 -d"; + hash = "sha256-5eYliZV3WPjbQ3WGvZuqzeu060MHRof2yozSWPn+Njg="; + }) + # Linux: Rename LINUX_WRITEPAGES_USES_FOLIOS + (fetchpatch { + url = "https://gerrit.openafs.org/changes/16650/revisions/1e5801afe3069a9ca586c745ae1e26feb8f1048f/patch"; + decode = "base64 -d"; + hash = "sha256-qtqe64qhRwNBwfKkGhuEAKFDMFDirFxz9M0Wvtk+r1Q="; + }) + # Linux: Don't use write_cache_pages for writepages + (fetchpatch { + url = "https://gerrit.openafs.org/changes/16648/revisions/652674cec6c6c7349709dc080b6a2db3253424e6/patch"; + decode = "base64 -d"; + hash = "sha256-5T4hOge3U5uk3NSFxocYEjgfXU1Se5FkQk2rCRZDlfU="; + }) ]; nativeBuildInputs = [