Skip to contentSkip to conversation

linux: add server options for NFSD

PATCH Superseded Ryan Barnett 2 participants 3 messages Jul 13, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux: add server options for NFSD

When nfs-utils packages is selected, automatically enable the kernel options for NFSD. This will allow for an NFS server to work by only adding /etc/exports to the filesystem.

---

Test with qemu_x86_defconfig

---
 linux/linux.mk | 3 +++
 1 file changed, 3 insertions(+)
linux/linux.mk +3 -0
index b602a04..ef876c4 100644
@@ -229,6 +229,9 @@ define LINUX_KCONFIG_FIXUP_CMDS
 	$(if $(BR2_PACKAGE_XTABLES_ADDONS),
 		$(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK,$(@D)/.config)
 		$(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK_MARK,$(@D)/.config))
+	$(if $(BR2_PACKAGE_NFS_UTILS),
+		$(call KCONFIG_ENABLE_OPT,CONFIG_NFSD,$(@D)/.config)
+		$(call KCONFIG_ENABLE_OPT,CONFIG_NFSD_V4,$(@D)/.config))
 	$(if $(BR2_LINUX_KERNEL_APPENDED_DTB),
 		$(call KCONFIG_ENABLE_OPT,CONFIG_ARM_APPENDED_DTB,$(@D)/.config))
 endef
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 linux: add server options for NFSD

Quoted 19 lines · Ryan Barnett

When nfs-utils packages is selected, automatically enable the kernel options for NFSD. This will allow for an NFS server to work by only adding /etc/exports to the filesystem.

---

Test with qemu_x86_defconfig

---
 linux/linux.mk | 3 +++
 1 file changed, 3 insertions(+)
linux/linux.mk +0 -0
index b602a04..ef876c4 100644

linux/linux.mk define LINUX_KCONFIG_FIXUP_CMDS · line 234

Quoted 6 lines
linux/linux.mk +3 -0
@@ -229,6 +229,9 @@ define LINUX_KCONFIG_FIXUP_CMDS
 	$(if $(BR2_PACKAGE_XTABLES_ADDONS),
 		$(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK,$(@D)/.config)
 		$(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK_MARK,$(@D)/.config))
+	$(if $(BR2_PACKAGE_NFS_UTILS),
+		$(call KCONFIG_ENABLE_OPT,CONFIG_NFSD,$(@D)/.config)
+		$(call KCONFIG_ENABLE_OPT,CONFIG_NFSD_V4,$(@D)/.config))

Since v4 is currently disabled in nfs-utils, this isn't useful at the moment,
right?

Regards,
Arnout

Quoted 4 lines
linux/linux.mk +0 -0
 	$(if $(BR2_LINUX_KERNEL_APPENDED_DTB),
 		$(call KCONFIG_ENABLE_OPT,CONFIG_ARM_APPENDED_DTB,$(@D)/.config))
 endef
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#2 lore raw

PATCH 1/1 linux: add server options for NFSD

Arnout,

Quoted 15 lines · Arnout Vandecappelle
Quoted 14 lines · Ryan Barnett

When nfs-utils packages is selected, automatically enable the kernel options for NFSD. This will allow for an NFS server to work by only adding /etc/exports to the filesystem.

---

Test with qemu_x86_defconfig

---
 linux/linux.mk | 3 +++
 1 file changed, 3 insertions(+)
Quoted 14 lines

linux/linux.mk define LINUX_KCONFIG_FIXUP_CMDS · line 234

Quoted 11 lines
linux/linux.mk +3 -0
index b602a04..ef876c4 100644
@@ -229,6 +229,9 @@ define LINUX_KCONFIG_FIXUP_CMDS
      $(if $(BR2_PACKAGE_XTABLES_ADDONS),
              $(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK,$(@D)/.config)
              $(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK_MARK,$(@D)/.config))
+     $(if $(BR2_PACKAGE_NFS_UTILS),
+             $(call KCONFIG_ENABLE_OPT,CONFIG_NFSD,$(@D)/.config)
+             $(call KCONFIG_ENABLE_OPT,CONFIG_NFSD_V4,$(@D)/.config))

Since v4 is currently disabled in nfs-utils, this isn't useful at the moment,
right?

Hmm - good catch I just assumed that it had the support enabled. I will send an update to just support CONFIG_NFSD.

Thanks,
-Ryan

Signature · 5 lines
Ryan Barnett / Sr Software Engineer
Airborne Information Systems / Security Systems and Software
MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
ryan.barnett at rockwellcollins.com
www.rockwellcollins.com