-
- Downloads
[PATCH] knfsd: add some new fsid types
Add support for using a filesystem UUID to identify and export point in the filehandle. For NFSv2, this UUID is xor-ed down to 4 or 8 bytes so that it doesn't take up too much room. For NFSv3+, we use the full 16 bytes, and possibly also a 64bit inode number for exports beneath the root of a filesystem. When generating an fsid to return in 'stat' information, use the UUID (hashed down to size) if it is available and a small 'fsid' was not specifically provided. Signed-off-by:Neil Brown <neilb@suse.de> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- fs/nfsd/export.c 69 additions, 37 deletionsfs/nfsd/export.c
- fs/nfsd/nfs3xdr.c 23 additions, 8 deletionsfs/nfsd/nfs3xdr.c
- fs/nfsd/nfs4xdr.c 8 additions, 2 deletionsfs/nfsd/nfs4xdr.c
- fs/nfsd/nfsfh.c 46 additions, 42 deletionsfs/nfsd/nfsfh.c
- fs/nfsd/nfsxdr.c 16 additions, 3 deletionsfs/nfsd/nfsxdr.c
- include/linux/nfsd/export.h 4 additions, 3 deletionsinclude/linux/nfsd/export.h
- include/linux/nfsd/nfsd.h 0 additions, 12 deletionsinclude/linux/nfsd/nfsd.h
- include/linux/nfsd/nfsfh.h 76 additions, 23 deletionsinclude/linux/nfsd/nfsfh.h
Loading
Please register or sign in to comment