]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] knfsd: nfsd4: reboot hash
authorNeilBrown <neilb@cse.unsw.edu.au>
Fri, 24 Jun 2005 05:03:52 +0000 (22:03 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 24 Jun 2005 07:06:33 +0000 (00:06 -0700)
commit8a215ffb09a03bb0bb589fe6de343215c5e0e811
tree408d5dc0ecf970c103ef091388e66da267adb2e2
parent3cc7f76fa75d42d6f12f83997f1e7024f0197837
[PATCH] knfsd: nfsd4: reboot hash

For the purposes of reboot recovery we keep a directory with subdirectories
each having a name that is the ascii hex representation of the md5 sum of a
client identifier for an active client.

This adds the code to calculate that name.  We also use it for the purposes of
comparing clients, so if someone ever manages to find two client names that
are md5 collisions, then we'll return clid_inuse to the second.

Signed-off-by: Andy Adamson <andros@citi.umich.edu>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/Kconfig
fs/nfsd/Makefile
fs/nfsd/nfs4recover.c [new file with mode: 0644]
fs/nfsd/nfs4state.c
include/linux/nfsd/state.h