summaryrefslogtreecommitdiffstats
path: root/utils/nfsdcld/sqlite.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-04-26 11:48:52 -0400
committerSteve Dickson <steved@redhat.com>2012-04-26 13:25:04 -0400
commit09d9011c66e518ca7fd01d41607845b940f58c8f (patch)
treeb4cddb31438f80171f5f8053d06da76d1168fd12 /utils/nfsdcld/sqlite.h
parent1b0d2b29df2e089bbcabc37a4cd716a448d48a5e (diff)
downloadnfs-utils-09d9011c66e518ca7fd01d41607845b940f58c8f.tar.gz
nfs-utils-09d9011c66e518ca7fd01d41607845b940f58c8f.tar.xz
nfs-utils-09d9011c66e518ca7fd01d41607845b940f58c8f.zip
nfsdcld: add function to remove unreclaimed client records
This should remove any client record that has a timestamp prior to the given time. Eventually, this call will need to be made cluster aware when this is run in a clustered configuration. For now, this is only suitable for single-host configurations. 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 59ebd72..c85e7d6 100644
--- a/utils/nfsdcld/sqlite.h
+++ b/utils/nfsdcld/sqlite.h
@@ -24,5 +24,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);
+int sqlite_remove_unreclaimed(const time_t grace_start);
#endif /* _SQLITE_H */