Coda Distributed File System
lka_private.h
Go to the documentation of this file.
1/* BLURB gpl
2
3 Coda File System
4 Release 6
5
6 Copyright (c) 1987-2016 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU General Public Licence Version 2, as shown in the
11file LICENSE. The technical and financial contributors to Coda are
12listed in the file CREDITS.
13
14
15 Copyright (c) 2002-2003 Intel Corporation
16
17#*/
18
19#ifndef _LKA_PRIVATE_H_INCLUDED_
20#define _LKA_PRIVATE_H_INCLUDED_ 1
21
22#include <rwcdb.h>
23#include <dllist.h>
24#include "lka.h"
25
26/* lkdb is an entry defining a lookaside database;
27 Venus has a doubly linked list of these entries */
28struct lkdb {
30 struct rwcdb dbh; /* database handle initialized by rwcdb_init() */
31 char *dbname; /* malloc'ed string with name of this db */
32 char *dblocation; /* malloc'ed string of getwd() for this db */
33 int entrycount; /* number of entries in database */
34
35 /* various statistics */
36 int attempts; /* number of lookaside attempts */
37 int hits; /* how many successful */
38 int shafails; /* how many hits failed sha verification */
39};
40
41/* First part of descriptor record is always the version string;
42 Update the version number as code evolves */
43#define LKA_VERSION_STRING "Coda LookAside Database, Version 1.1"
44
45#endif /*_LKA_PRIVATE_H_INCLUDED_ */
Definition: dllist.h:30
Definition: lka_private.h:28
int shafails
Definition: lka_private.h:38
char * dblocation
Definition: lka_private.h:32
int attempts
Definition: lka_private.h:36
struct rwcdb dbh
Definition: lka_private.h:30
struct dllist_head chain
Definition: lka_private.h:29
int entrycount
Definition: lka_private.h:33
char * dbname
Definition: lka_private.h:31
int hits
Definition: lka_private.h:37
Definition: rwcdb.h:24