GNU bug report logs - #47706
nfs mount in file-system works only if "nfs4" type is used for "mount" syscall

Previous Next

Package: guix;

Reported by: fsdfsdfsd3 <fsdfsdfsd3 <at> protonmail.com>

Date: Sun, 11 Apr 2021 10:46:02 UTC

Severity: normal

Tags: patch

Merged with 39770

Full log


View this message in rfc822 format

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: fsdfsdfsd3 <fsdfsdfsd3 <at> protonmail.com>
Cc: 47706 <at> debbugs.gnu.org
Subject: bug#47706: nfs mount in file-system works only if "nfs4" type is used for "mount" syscall
Date: Sat, 07 Aug 2021 23:19:14 -0400
[Message part 1 (text/plain, inline)]
Hello,

fsdfsdfsd3 <fsdfsdfsd3 <at> protonmail.com> writes:

> Hello,
>
> I ran into an issue with trying to mount an nfs file-system in an operating-system config.. I managed to trace it back to being an issue with the mount syscall.
>
> The following did not work:
> (mount "192.168.1.10:/nas-server" "/mnt/nas-client" "nfs" 0 "addr=192.168.
> 1.10")
> and would result in an error "No route to host"
>
> I changed the type from "nfs" to "nfs4" however and this did work (For context; at the command line, both mount.nfs and mount.nfs4 also work fine., mount.nfs also works fine without nfs-utils installed).
>
> This might be fixable by adding another check-procedure option for "nfs4" in addition to nfs, but I am sending it your way in case there is something else going on.
>
> Thank you!

Does this really work?  I seem to recall that the bigger problem would
be that file system services do *not* and cannot currently depend on
networking (while NFS obviously does).

Here's the attached output of

$ guix system shepherd-graph gnu/system/examples/bare-bones.tmpl \
  | dot -Tsvg -oout.svg

[out.svg (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]
We can see that the networking service dependency chain has:

networking --> user-processes --> user-homes --> file-systems

Which to me suggests that it wouldn't be enough to fix the problem you
reported above (or perhaps it is?  and NFS would simply fail during the
boot but keep trying until networking becomes available without too much
of an issue?)

Thanks,

Maxim

This bug report was last modified 3 years and 310 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.