aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs/types.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2007-04-26 18:49:28 -0400
committerDavid S. Miller <davem@davemloft.net>2007-04-26 18:49:28 -0400
commitec26815ad847dbf74a1e27aa5515fb7d5dc6ee6f (patch)
tree32510ab35b3524f6be9231ab8065b80be5d9b68d /fs/afs/types.h
parent17926a79320afa9b95df6b977b40cca6d8713cea (diff)
[AFS]: Clean up the AFS sources
Clean up the AFS sources. Also remove references to AFS keys. RxRPC keys are used instead. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/afs/types.h')
-rw-r--r--fs/afs/types.h34
1 files changed, 9 insertions, 25 deletions
diff --git a/fs/afs/types.h b/fs/afs/types.h
index b1a2367c758..db2b5dc9ff4 100644
--- a/fs/afs/types.h
+++ b/fs/afs/types.h
@@ -1,4 +1,4 @@
1/* types.h: AFS types 1/* AFS types
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,12 +9,10 @@
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_TYPES_H 12#ifndef AFS_TYPES_H
13#define _LINUX_AFS_TYPES_H 13#define AFS_TYPES_H
14 14
15#ifdef __KERNEL__
16#include <rxrpc/types.h> 15#include <rxrpc/types.h>
17#endif /* __KERNEL__ */
18 16
19typedef unsigned afs_volid_t; 17typedef unsigned afs_volid_t;
20typedef unsigned afs_vnodeid_t; 18typedef unsigned afs_vnodeid_t;
@@ -33,23 +31,18 @@ typedef enum {
33 AFS_FTYPE_SYMLINK = 3, 31 AFS_FTYPE_SYMLINK = 3,
34} afs_file_type_t; 32} afs_file_type_t;
35 33
36#ifdef __KERNEL__
37
38struct afs_cell; 34struct afs_cell;
39struct afs_vnode; 35struct afs_vnode;
40 36
41/*****************************************************************************/
42/* 37/*
43 * AFS file identifier 38 * AFS file identifier
44 */ 39 */
45struct afs_fid 40struct afs_fid {
46{
47 afs_volid_t vid; /* volume ID */ 41 afs_volid_t vid; /* volume ID */
48 afs_vnodeid_t vnode; /* file index within volume */ 42 afs_vnodeid_t vnode; /* file index within volume */
49 unsigned unique; /* unique ID number (file index version) */ 43 unsigned unique; /* unique ID number (file index version) */
50}; 44};
51 45
52/*****************************************************************************/
53/* 46/*
54 * AFS callback notification 47 * AFS callback notification
55 */ 48 */
@@ -60,8 +53,7 @@ typedef enum {
60 AFSCM_CB_DROPPED = 3, /* CB promise cancelled by file server */ 53 AFSCM_CB_DROPPED = 3, /* CB promise cancelled by file server */
61} afs_callback_type_t; 54} afs_callback_type_t;
62 55
63struct afs_callback 56struct afs_callback {
64{
65 struct afs_server *server; /* server that made the promise */ 57 struct afs_server *server; /* server that made the promise */
66 struct afs_fid fid; /* file identifier */ 58 struct afs_fid fid; /* file identifier */
67 unsigned version; /* callback version */ 59 unsigned version; /* callback version */
@@ -71,12 +63,10 @@ struct afs_callback
71 63
72#define AFSCBMAX 50 64#define AFSCBMAX 50
73 65
74/*****************************************************************************/
75/* 66/*
76 * AFS volume information 67 * AFS volume information
77 */ 68 */
78struct afs_volume_info 69struct afs_volume_info {
79{
80 afs_volid_t vid; /* volume ID */ 70 afs_volid_t vid; /* volume ID */
81 afs_voltype_t type; /* type of this volume */ 71 afs_voltype_t type; /* type of this volume */
82 afs_volid_t type_vids[5]; /* volume ID's for possible types for this vol */ 72 afs_volid_t type_vids[5]; /* volume ID's for possible types for this vol */
@@ -88,12 +78,10 @@ struct afs_volume_info
88 } servers[8]; 78 } servers[8];
89}; 79};
90 80
91/*****************************************************************************/
92/* 81/*
93 * AFS file status information 82 * AFS file status information
94 */ 83 */
95struct afs_file_status 84struct afs_file_status {
96{
97 unsigned if_version; /* interface version */ 85 unsigned if_version; /* interface version */
98#define AFS_FSTATUS_VERSION 1 86#define AFS_FSTATUS_VERSION 1
99 87
@@ -111,15 +99,11 @@ struct afs_file_status
111 time_t mtime_server; /* last time server changed data */ 99 time_t mtime_server; /* last time server changed data */
112}; 100};
113 101
114/*****************************************************************************/
115/* 102/*
116 * AFS volume synchronisation information 103 * AFS volume synchronisation information
117 */ 104 */
118struct afs_volsync 105struct afs_volsync {
119{
120 time_t creation; /* volume creation time */ 106 time_t creation; /* volume creation time */
121}; 107};
122 108
123#endif /* __KERNEL__ */ 109#endif /* AFS_TYPES_H */
124
125#endif /* _LINUX_AFS_TYPES_H */