diff --git a/0001-nfs-disable-v4client-for-loongarch.patch b/0001-nfs-disable-v4client-for-loongarch.patch new file mode 100644 index 0000000000000000000000000000000000000000..6cd79a86b10d66eb3461225dd58cae2aa39d9744 --- /dev/null +++ b/0001-nfs-disable-v4client-for-loongarch.patch @@ -0,0 +1,26 @@ +From 4cb8ad91c76375542ad8f100962da1ce411dfdf7 Mon Sep 17 00:00:00 2001 +From: Liwei Ge +Date: Fri, 13 Jan 2023 22:29:37 +0800 +Subject: [PATCH] nfs: disable v4client for loongarch + +--- + support/export/v4clients.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/support/export/v4clients.c b/support/export/v4clients.c +index dd98546..4fa7212 100644 +--- a/support/export/v4clients.c ++++ b/support/export/v4clients.c +@@ -23,6 +23,9 @@ static int clients_fd = -1; + + void v4clients_init(void) + { ++#ifdef __loongarch__ ++ return; ++#endif + if (clients_fd >= 0) + return; + clients_fd = inotify_init1(IN_NONBLOCK); +-- +2.27.0 + diff --git a/nfs-utils.spec b/nfs-utils.spec index cef570b6950c76f02b16256a01b8486424936eec..1b819cfea8cc653c42eaa05cc181b619e0069a54 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.2 +%define anolis_release .0.3 Summary: NFS utilities and supporting clients and daemons for the kernel NFS server Name: nfs-utils URL: http://linux-nfs.org/ @@ -103,6 +103,7 @@ Patch104: nfs-utils-2.3.1-systemd-svcgssd-removed.patch Patch1001: 1001-nfs-utils-gcc10.patch # backport patch from upstream Patch1002: 1002-Allow-compilation-to-succeed-with-fno-common.patch +Patch1003: 0001-nfs-disable-v4client-for-loongarch.patch # End: Anolis customized patches Provides: exportfs = %{epoch}:%{version}-%{release} @@ -374,6 +375,9 @@ fi %{_libdir}/libnfsidmap.so %changelog +* Fri Jan 13 2023 Liwei Ge 2.3.3-51.0.3 +- Disable v4client on loongarch platform + * Wed Dec 14 2022 Zhao Hang 2.3.3-51.0.2 - Rebuild for Anolis OS 8 - Add libuuid-devel buildrequires