Re: [PATCH] NFS4: fix referrals with IPv6 mounts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Weston Andros Adamson wrote:

  nfs4_path() was parsing the path component by splitting on the first colon.
  This is wrong when an IPv6 address is used to mount a server.
  
  For example, having mounted 'fc00::10:/export', nfs4_path() returned
  ':10:/export'.  This causes referrals (using IPv4 or IPv6 addresses) to fail
  in nfs4_validate_fspath().
  
  Parsing the path component by using the *last* colon works with
  IPv6 as well as IPv4 addrs.

What if your mount is:

server.edu:/export/:I-like-colons:

It seems to me something has to give.  Either we require v6 addresses be
enclosed in [], export dirs start with "/", or exports have no ":".
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux