diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-04-26 11:48:52 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2012-04-26 13:25:04 -0400 |
commit | 09d9011c66e518ca7fd01d41607845b940f58c8f (patch) | |
tree | b4cddb31438f80171f5f8053d06da76d1168fd12 /utils/nfsdcld/sqlite.h | |
parent | 1b0d2b29df2e089bbcabc37a4cd716a448d48a5e (diff) | |
download | nfs-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.h | 1 |
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 */ |