Skip to contentSkip to conversation

linux: add config options for nfs-utils

PATCH New Ryan Barnett 2 participants 2 messages Jul 14, 2015 – Oct 4, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 linux: add config options for nfs-utils

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

Changes v2 -> v3:
- Add CONFIG_NFSD_V3 option as well to really support only v3 of NFS

Changes v1 -> v2:
- Only enable CONFIG_NFSD (suggested by Arnout)

---
 linux/linux.mk | 3 +++
 1 file changed, 3 insertions(+)
linux/linux.mk +3 -0
index 8c535f3..31e1f01 100644
@@ -217,6 +217,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_V3,$(@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 v3 1/1 linux: add config options for nfs-utils

Quoted 5 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.

Hi Ryan,

I've marked your patch as Rejected in patchwork. We don't want to add automatic
kernel config fiddling unless really needed for either building (e.g. xtables-addons builds a kernel module that requires specific functions) or for booting (e.g. systemd, ARM ABI).

In addition, in this particular case, it's possible that someone enables
nfs-utils just to be able to run rpc.statd in a nfs client that requires locking.

So instead, we think it's better to update the nfs-utils help test to mention
the Kconfig options that have to be enabled to have an NFS server.

Sorry that it had to come to a v3 and several months later before coming to
such a conclusion.

Regards,
Arnout

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