summaryrefslogtreecommitdiffstats
path: root/utils/nfsdcld/sqlite.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-04-26 11:47:58 -0400
committerSteve Dickson <steved@redhat.com>2012-04-26 13:25:04 -0400
commit1b0d2b29df2e089bbcabc37a4cd716a448d48a5e (patch)
tree1720bef648eeded19bda17a8cc750cc3c2c4d767 /utils/nfsdcld/sqlite.h
parent53f6dbee36fb72acb9a88413fc35c4e71200d3b8 (diff)
downloadnfs-utils-1b0d2b29df2e089bbcabc37a4cd716a448d48a5e.tar.gz
nfs-utils-1b0d2b29df2e089bbcabc37a4cd716a448d48a5e.tar.xz
nfs-utils-1b0d2b29df2e089bbcabc37a4cd716a448d48a5e.zip
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>
Diffstat (limited to 'utils/nfsdcld/sqlite.h')
-rw-r--r--utils/nfsdcld/sqlite.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/nfsdcld/sqlite.h b/utils/nfsdcld/sqlite.h
index 425f5ba..59ebd72 100644
--- a/utils/nfsdcld/sqlite.h
+++ b/utils/nfsdcld/sqlite.h
@@ -23,5 +23,6 @@
int sqlite_maindb_init(char *topdir);
int sqlite_insert_client(const unsigned char *clname, const size_t namelen);
int sqlite_remove_client(const unsigned char *clname, const size_t namelen);
+int sqlite_check_client(const unsigned char *clname, const size_t namelen);
#endif /* _SQLITE_H */