GeeXboX

NFS doesn’t support udp protocol with Kernel 3.14.14?

October 1st, 2014

Home Forums GeeXboX on ARM SoCs NFS doesn’t support udp protocol with Kernel 3.14.14?

This topic contains 3 replies, has 2 voices, and was last updated by spacedog 2 days, 21 hours ago.

Viewing 4 posts – 1 through 4 (of 4 total)
  • Author
    Posts
  • #8695

    spacedog
    Member

    So I managed to update the kernel to 3.14.14 and as a result it broke my configuration in automounter-nfs.

    I pass the udp option for my NFS automounts like this in /usr/bin/automounter-nfs:

    mount -t nfs -o rw,udp,rsize=32768,soft,lookupcache=none,noatime,nolock

    After doing further testing I was able to determine the reason it was failing is that after upgrading the kernel, it throws the error:

    mount.nfs: an incorrect mount option was specified

    Is this a bug? Or does the 3.14.14 kernel use NFS v4 now by default and does that make the udp option no longer valid/deprecated?

    #8701

    spacedog
    Member

    OK, I’ve done some further testing and I’m pretty sure that the new kernel is processing mount -t nfs using nfs v4 by default and udp seems to be no longer supported in nfs v4.

    This means that the new kernel will break the automounter-nfs package since it passes the udp option on the default install as follows:

    mount -t nfs -o ro,udp,rsize=32768,soft,noatime,nolock "$1" "$MNT" >/dev/null 2>&1

    There are two ways to resolved this. Either strike the udp flag or add the nfsvers=3 to options. For my config, I have changed it manually to the following and it back to working as usual:

    mount -t nfs -o ro,nfsvers=3,udp,rsize=32768,soft,noatime,nolock "$1" "$MNT" >/dev/null 2>&1

    #8705

    tomlohave
    Moderator

    Hello,
    thanks for the report
    I will test on my cuboxi to see what happens too.
    anyway, udp is not supported by nfsv4

    #8806

    spacedog
    Member

    Just following up on this? Pretty sure automounter-nfs packaged needs to be changed to add the nfsvers=3 flag or have the UDP flag dropped

Viewing 4 posts – 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Comments are closed.