Fix file handle bytes switching in xdr_nfs_fh4 XDR_ENCODE

FSAL_PROXY tests reveals a "Stale file handle" error at
first ls on root directory. This was due to call to htons
in the encode way that was switching bytes and corrupting
the file handle in FSAL_PROXY. To fix this issue, we simply
choose to let export id in network byte order in the handle
and only revert it when we extract it. This commit fix NFSv3
and NFSv4 protocols.

Change-Id: Ia682d0ce83d19ee873c1c7a993e6c86499c48bd7
Signed-off-by: Patrice LUCAS <patrice.lucas@cea.fr>
8 files changed
tree: ed9be0d0eb7a8d9bfe2be2f5269be8f321a3a88d
  1. contrib/
  2. coverity/
  3. jenkins/
  4. src/
  5. .gitignore
  6. .gitmodules
  7. .gitreview
  8. .mailmap
  9. .travis.yml
  10. README.md
README.md

Coverity Scan Build Status nfs-ganesha

NFS-Ganesha is an NFSv3,v4,v4.1 fileserver that runs in user mode on most UNIX/Linux systems. It also supports the 9p.2000L protocol.

For more information, consult the project wiki.