diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2010-10-23 22:28:29 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2010-10-23 22:28:29 +0000 |
commit | 588f6113eb0b6c90b6c04c5610fd020f6936fb02 (patch) | |
tree | e1d46f0e86ee146767272d84aae76905eee2bc9f /sys/fs/nfs/nfs_var.h | |
parent | cbeee1455f30d3329a81e17f56c256252d2b0f4f (diff) | |
download | FreeBSD-src-588f6113eb0b6c90b6c04c5610fd020f6936fb02.zip FreeBSD-src-588f6113eb0b6c90b6c04c5610fd020f6936fb02.tar.gz |
Modify the experimental NFSv4 server's file handle hash function
to use the generic hash32_buf() function. Although adding the
bytes seemed sufficient for UFS and ZFS, since most of the bytes
are the same for file handles on the same volume, this might not
be sufficient for other file systems. Use of a generic function
also seems preferable to one specific to NFSv4.
Suggested by: gleb.kurtsou at gmail.com
MFC after: 10 days
Diffstat (limited to 'sys/fs/nfs/nfs_var.h')
-rw-r--r-- | sys/fs/nfs/nfs_var.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nfs/nfs_var.h b/sys/fs/nfs/nfs_var.h index 03b7a0a..0fdb61d 100644 --- a/sys/fs/nfs/nfs_var.h +++ b/sys/fs/nfs/nfs_var.h @@ -576,7 +576,7 @@ void nfsvno_unlockvfs(mount_t); int nfsvno_lockvfs(mount_t); int nfsrv_v4rootexport(void *, struct ucred *, NFSPROC_T *); int nfsvno_testexp(struct nfsrv_descript *, struct nfsexstuff *); -int nfsrv_hashfh(fhandle_t *); +uint32_t nfsrv_hashfh(fhandle_t *); /* nfs_commonkrpc.c */ int newnfs_nmcancelreqs(struct nfsmount *); |