2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #ifndef _VLSERVER_INTERNAL_H
11 #define _VLSERVER_INTERNAL_H
14 extern int VL_ExecuteRequest(struct rx_call *z_call);
17 extern int Init_VLdbase(struct ubik_trans **trans, int locktype, int this_op);
20 extern afs_int32 vlwrite(struct ubik_trans *trans, afs_int32 offset,
21 void *buffer, afs_int32 length);
22 extern afs_int32 vlentrywrite(struct ubik_trans *trans, afs_int32 offset,
23 void *buffer, afs_int32 length);
24 extern int write_vital_vlheader(register struct ubik_trans *trans);
25 extern afs_int32 readExtents(struct ubik_trans *trans);
26 extern afs_int32 CheckInit(struct ubik_trans *trans, int builddb);
27 extern afs_int32 AllocBlock(register struct ubik_trans *trans,
28 struct nvlentry *tentry);
29 extern afs_int32 FindExtentBlock(struct ubik_trans *trans, afsUUID *uuidp,
30 afs_int32 createit, afs_int32 hostslot,
31 struct extentaddr **expp, afs_int32 *basep);
32 extern afs_int32 FindByID(struct ubik_trans *trans, afs_uint32 volid,
33 afs_int32 voltype, struct nvlentry *tentry,
35 extern afs_int32 FindByName(struct ubik_trans *trans, char *volname,
36 struct nvlentry *tentry, afs_int32 *error);
37 extern int HashNDump(struct ubik_trans *trans, int hashindex);
38 extern int HashIdDump(struct ubik_trans *trans, int hashindex);
39 extern int ThreadVLentry(struct ubik_trans *trans, afs_int32 blockindex,
40 struct nvlentry *tentry);
41 extern int UnthreadVLentry(struct ubik_trans *trans, afs_int32 blockindex,
42 struct nvlentry *aentry);
43 extern int HashVolid(struct ubik_trans *trans, afs_int32 voltype,
44 afs_int32 blockindex, struct nvlentry *tentry);
45 extern int UnhashVolid(struct ubik_trans *trans, afs_int32 voltype,
46 afs_int32 blockindex, struct nvlentry *aentry);
47 extern int HashVolname(struct ubik_trans *trans, afs_int32 blockindex,
48 struct nvlentry *aentry);
49 extern int UnhashVolname(struct ubik_trans *trans, afs_int32 blockindex,
50 struct nvlentry *aentry);
51 extern afs_int32 NextEntry(struct ubik_trans *trans, afs_int32 blockindex,
52 struct nvlentry *tentry, afs_int32 *remaining);