aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs/vlclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/afs/vlclient.h')
-rw-r--r--fs/afs/vlclient.h34
1 files changed, 13 insertions, 21 deletions
diff --git a/fs/afs/vlclient.h b/fs/afs/vlclient.h
index e3d601179c46..11dc10fe3009 100644
--- a/fs/afs/vlclient.h
+++ b/fs/afs/vlclient.h
@@ -1,4 +1,4 @@
1/* vlclient.h: Volume Location Service client interface 1/* Volume Location Service client interface
2 * 2 *
3 * Copyright (C) 2002 Red Hat, Inc. All Rights Reserved. 3 * Copyright (C) 2002 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com) 4 * Written by David Howells (dhowells@redhat.com)
@@ -9,8 +9,8 @@
9 * 2 of the License, or (at your option) any later version. 9 * 2 of the License, or (at your option) any later version.
10 */ 10 */
11 11
12#ifndef _LINUX_AFS_VLCLIENT_H 12#ifndef AFS_VLCLIENT_H
13#define _LINUX_AFS_VLCLIENT_H 13#define AFS_VLCLIENT_H
14 14
15#include "types.h" 15#include "types.h"
16 16
@@ -68,26 +68,18 @@ struct afs_vldbentry {
68#define AFS_VLSF_RWVOL 0x0004 /* this server holds a R/W instance of the volume */ 68#define AFS_VLSF_RWVOL 0x0004 /* this server holds a R/W instance of the volume */
69#define AFS_VLSF_BACKVOL 0x0008 /* this server holds a backup instance of the volume */ 69#define AFS_VLSF_BACKVOL 0x0008 /* this server holds a backup instance of the volume */
70 } servers[8]; 70 } servers[8];
71
72}; 71};
73 72
74/* look up a volume location database entry by name */ 73extern int afs_rxvl_get_entry_by_name(struct afs_server *, const char *,
75extern int afs_rxvl_get_entry_by_name(struct afs_server *server, 74 unsigned, struct afs_cache_vlocation *);
76 const char *volname, 75extern int afs_rxvl_get_entry_by_id(struct afs_server *, afs_volid_t,
77 unsigned volnamesz, 76 afs_voltype_t,
78 struct afs_cache_vlocation *entry); 77 struct afs_cache_vlocation *);
79
80/* look up a volume location database entry by ID */
81extern int afs_rxvl_get_entry_by_id(struct afs_server *server,
82 afs_volid_t volid,
83 afs_voltype_t voltype,
84 struct afs_cache_vlocation *entry);
85 78
86extern int afs_rxvl_get_entry_by_id_async(struct afs_async_op *op, 79extern int afs_rxvl_get_entry_by_id_async(struct afs_async_op *,
87 afs_volid_t volid, 80 afs_volid_t, afs_voltype_t);
88 afs_voltype_t voltype);
89 81
90extern int afs_rxvl_get_entry_by_id_async2(struct afs_async_op *op, 82extern int afs_rxvl_get_entry_by_id_async2(struct afs_async_op *,
91 struct afs_cache_vlocation *entry); 83 struct afs_cache_vlocation *);
92 84
93#endif /* _LINUX_AFS_VLCLIENT_H */ 85#endif /* AFS_VLCLIENT_H */