Home Home > GIT Browse > SLE15-SP1-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2019-06-20 09:06:23 +1000
committerNeilBrown <neilb@suse.com>2019-06-20 09:06:23 +1000
commit4f6fcf98d60d39c27d98e4609b2fabd31701e493 (patch)
treea9c66a25b0447645875138e42bca95df6397635f
parent9e07b8ffd1fcfd4775aa7138ba66df6b421fdeeb (diff)
Don't restrict NFSv4.2 on openSUSE (bsc#1138719).
-rw-r--r--patches.suse/NFS-optional-NFSv4_2-fix.patch30
-rw-r--r--series.conf1
2 files changed, 31 insertions, 0 deletions
diff --git a/patches.suse/NFS-optional-NFSv4_2-fix.patch b/patches.suse/NFS-optional-NFSv4_2-fix.patch
new file mode 100644
index 0000000000..a7c0760075
--- /dev/null
+++ b/patches.suse/NFS-optional-NFSv4_2-fix.patch
@@ -0,0 +1,30 @@
+From: NeilBrown <neilb@suse.com>
+Subject: Don't restrict NFSv4.2 on openSUSE
+Patch-mainline: Never, suse specific
+References: bsc#1138719
+
+We default the nfs.max_minor_version to 1 on some SLE kernels,
+but don't need to do that for openSUSE - Leap or Tumbleweed
+
+---
+ fs/nfs/super.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- a/fs/nfs/super.c
++++ b/fs/nfs/super.c
+@@ -76,11 +76,15 @@
+ #define NFS_DEFAULT_VERSION 2
+ #endif
+
++#ifdef CONFIG_SUSE_PRODUCT_SLE
+ #if CONFIG_SUSE_VERSION < 15 || (CONFIG_SUSE_VERSION == 15 && CONFIG_SUSE_PATCHLEVEL == 0)
+ static int max_minor_version = 1;
+ #else
+ static int max_minor_version = 2;
+ #endif
++#else
++static int max_minor_version = 2;
++#endif
+
+ #define NFS_MAX_CONNECTIONS 16
+
diff --git a/series.conf b/series.conf
index 28b3dea95c..368a31ee8c 100644
--- a/series.conf
+++ b/series.conf
@@ -22886,6 +22886,7 @@
patches.kabi/sunrpc-use-after-free-in-svc_process_common.patch
patches.fixes/sunrpc-cache-handle-missing-listeners-better.patch
patches.suse/NFS-optional-NFSv4_2.patch
+ patches.suse/NFS-optional-NFSv4_2-fix.patch
########################################################
# Overlayfs