Jump to content

Why is NFS v4 not activated by default on Armbian?


Rötti

Recommended Posts

Hello,

 

I just installed Armbian on my SBC based on Ubuntu 20.04.3 LTS (Focal Fossa).
 

> cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
PRETTY_NAME="Armbian 21.08.2 Focal"
VERSION_ID="20.04"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

 

Installed NFSD server via apt-get install nfs-kernel-server and checked which version of NFS is supported:

> cat /proc/fs/nfsd/versions
-2 +3
> rpcinfo -u localhost nfs
program 100003 version 3 ready and waiting

 

Indicating NFSD is not supporting v4. That might be because of:
 

> zcat /proc/config.gz | grep NFS
# CONFIG_USB_FUNCTIONFS is not set
CONFIG_XENFS=m
CONFIG_XEN_COMPAT_XENFS=y
CONFIG_KERNFS=y
CONFIG_NFS_FS=m
CONFIG_NFS_V2=m
CONFIG_NFS_V3=m
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=m
# CONFIG_NFS_SWAP is not set
# CONFIG_NFS_V4_1 is not set
# CONFIG_NFS_USE_LEGACY_DNS is not set
CONFIG_NFS_USE_KERNEL_DNS=y
CONFIG_NFS_DISABLE_UDP_SUPPORT=y
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V3_ACL is not set
# CONFIG_NFSD_V4 is not set
CONFIG_NFS_ACL_SUPPORT=m
CONFIG_NFS_COMMON=y

 

Question:

Why is CONFIG_NFSD_V4 is not set by default?

Link to comment
Share on other sites

Hi @Werner

 

now over the holidays I've found some spare time to do the testing. The work is done and NFSD v4 is now included on all configs across all boards. I tested it and it worked:

 

root@espressobin:~# rpcinfo -p localhost | grep nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100003    3   udp   2049  nfs

 

Be aware that I could only test it on my EspressoBin board, so I can't make any promises for all other boards.

 

Because of the fact that I'm avoiding Micro$oft products at all costs I don't own a Github account and don't intend in doing so. So I asked my Rakudo (Perl6) friends and one of them created the branch: https://github.com/patrickbkr/build/tree/unify-nfs-config

 

That means that you'll receive a pull request on my behalf today evening.

 

Happy new year 2022!

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines