]> git.decadent.org.uk Git - nfs-utils.git/commit
nfsdcld: add check/update functionality
authorJeff Layton <jlayton@redhat.com>
Thu, 26 Apr 2012 15:47:58 +0000 (11:47 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 26 Apr 2012 17:25:04 +0000 (13:25 -0400)
commit1b0d2b29df2e089bbcabc37a4cd716a448d48a5e
tree1720bef648eeded19bda17a8cc750cc3c2c4d767
parent53f6dbee36fb72acb9a88413fc35c4e71200d3b8
nfsdcld: add check/update functionality

Add functions to check whether a client is allowed to reclaim, and
update its timestamp in the DB if so. If either the query or update
fails, then the host is not allowed to reclaim state.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/nfsdcld/nfsdcld.c
utils/nfsdcld/sqlite.c
utils/nfsdcld/sqlite.h