All of lore.kernel.org
 help / color / mirror / Atom feed
* NFSv4: Unable to mount, nonsensical error
@ 2014-09-27 14:27 Andreas Reis
  2014-09-28  2:10 ` Ian Kent
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Reis @ 2014-09-27 14:27 UTC (permalink / raw)
  To: autofs

Hi,

I'm trying to automount a NFSv4 share to /mnt/bar from Host A via a 
direct map, but can't get it to work no matter what.

Mounting it manually with the very same options works perfectly fine.

auto.master:
/-     /etc/autofs/bar.nfs    --timeout=15 --ghost
/foo   /etc/autofs/auto.nfs   --timeout=15

The second line is an executable map for NFSv3 shares from Host B. That 
one works as intended. However…

fs.nfs:
/mnt/bar -fstype=nfs4,rw,soft,async,_netdev,rsize=8192,wsize=8192 
192.168.1.144:bar
(on one line)

… fails. Instead, the folder is still created, but accessing it yields 
"No such file or directory".

Meanwhile automount prints a nonsensical …

"validate_location: expected colon delimeter not found in location 
192.168.1.144:bar"

… which from an error path (with a typo) in parse_sun.c's 
validate_location that was added in autofs 5.0.6.

Maybe the person who added it missed that unlike mount requests for 
NFSv3 shares, NFSv4 ones need not (depending on the server, must not) 
have a "/" after the ":"?

Because that however is what the somewhat misleadingly named check_colon 
function called by validate_location checks.

Nonetheless, patching that path to still return 1 resolved nothing.

Any ideas?

(Distro is Arch, updated packages, ie. autofs 5.1.0.)

Thanks,
Andreas

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: NFSv4: Unable to mount, nonsensical error
  2014-09-27 14:27 NFSv4: Unable to mount, nonsensical error Andreas Reis
@ 2014-09-28  2:10 ` Ian Kent
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Kent @ 2014-09-28  2:10 UTC (permalink / raw)
  To: Andreas Reis; +Cc: autofs

On Sat, 2014-09-27 at 16:27 +0200, Andreas Reis wrote:
> Hi,
> 
> I'm trying to automount a NFSv4 share to /mnt/bar from Host A via a 
> direct map, but can't get it to work no matter what.
> 
> Mounting it manually with the very same options works perfectly fine.
> 
> auto.master:
> /-     /etc/autofs/bar.nfs    --timeout=15 --ghost
> /foo   /etc/autofs/auto.nfs   --timeout=15
> 
> The second line is an executable map for NFSv3 shares from Host B. That 
> one works as intended. However…
> 
> fs.nfs:
> /mnt/bar -fstype=nfs4,rw,soft,async,_netdev,rsize=8192,wsize=8192 
> 192.168.1.144:bar
> (on one line)
> 
> … fails. Instead, the folder is still created, but accessing it yields 
> "No such file or directory".
> 
> Meanwhile automount prints a nonsensical …
> 
> "validate_location: expected colon delimeter not found in location 
> 192.168.1.144:bar"
> 
> … which from an error path (with a typo) in parse_sun.c's 
> validate_location that was added in autofs 5.0.6.
> 
> Maybe the person who added it missed that unlike mount requests for 
> NFSv3 shares, NFSv4 ones need not (depending on the server, must not) 
> have a "/" after the ":"?

It is surprising that I'm not aware of this "convention" since a simple
search turns up results from quite a few years past.

Unfortunately there are a number of other places where this will cause
problems and some won't be at all straight forward to change.

Ian


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-28  2:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-27 14:27 NFSv4: Unable to mount, nonsensical error Andreas Reis
2014-09-28  2:10 ` Ian Kent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.