summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel
diff options
context:
space:
mode:
authorRicardo M. Correia <rcorreia@wizy.org>2014-04-23 16:47:50 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2014-07-15 15:07:25 +0200
commit85e444f4f869c80e280cbd4077d4a1b1ceba511b (patch)
tree2c25efcd8aeb423275a06c11d4601bc606cbaedb /pkgs/os-specific/linux/kernel
parentab2c7cfff771faf76c76952011dc9c5bb8c3dae1 (diff)
downloadnixlib-85e444f4f869c80e280cbd4077d4a1b1ceba511b.tar
nixlib-85e444f4f869c80e280cbd4077d4a1b1ceba511b.tar.gz
nixlib-85e444f4f869c80e280cbd4077d4a1b1ceba511b.tar.bz2
nixlib-85e444f4f869c80e280cbd4077d4a1b1ceba511b.tar.lz
nixlib-85e444f4f869c80e280cbd4077d4a1b1ceba511b.tar.xz
nixlib-85e444f4f869c80e280cbd4077d4a1b1ceba511b.tar.zst
nixlib-85e444f4f869c80e280cbd4077d4a1b1ceba511b.zip
linux: Enable NFSv4.1, v4.2 clients and swap on NFS
I'm only enabling for kernels >= 3.11 to be conservative, because clients and
servers automatically negotiate and use the highest mutually supported version
by default, but only in kernel 3.11 server NFSv4.1 support actually became RFC
compliant.

I'm also adding support for swap on NFS, which is enabled by default on
Ubuntu kernels.
Diffstat (limited to 'pkgs/os-specific/linux/kernel')
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix
index 7e7dd2dfda9d..9050d7aa9886 100644
--- a/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/pkgs/os-specific/linux/kernel/common-config.nix
@@ -157,6 +157,11 @@ with stdenv.lib;
   BTRFS_FS_POSIX_ACL y
   UBIFS_FS_XATTR? y
   UBIFS_FS_ADVANCED_COMPR? y
+  NFS_SWAP y
+  ${optionalString (versionAtLeast version "3.11") ''
+    NFS_V4_1 y  # NFSv4.1 client support
+    NFS_V4_2 y
+  ''}
   NFSD_V2_ACL y
   NFSD_V3 y
   NFSD_V3_ACL y