diff options
author | David Howells <dhowells@redhat.com> | 2007-05-11 01:22:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-11 11:29:32 -0400 |
commit | 45222b9e02fb282eb0a8007a3d992dd229ec2410 (patch) | |
tree | 2160228a23c700437bda0898d3a700ac499b941d /fs/afs/afs.h | |
parent | 0f300ca9284caabdd2c07c7f91b90f1f530f614e (diff) |
AFS: implement statfs
Implement the statfs() op for AFS.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/afs/afs.h')
-rw-r--r-- | fs/afs/afs.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/fs/afs/afs.h b/fs/afs/afs.h index 52d0752265b..24525794814 100644 --- a/fs/afs/afs.h +++ b/fs/afs/afs.h | |||
@@ -16,6 +16,9 @@ | |||
16 | 16 | ||
17 | #define AFS_MAXCELLNAME 64 /* maximum length of a cell name */ | 17 | #define AFS_MAXCELLNAME 64 /* maximum length of a cell name */ |
18 | #define AFS_MAXVOLNAME 64 /* maximum length of a volume name */ | 18 | #define AFS_MAXVOLNAME 64 /* maximum length of a volume name */ |
19 | #define AFSNAMEMAX 256 /* maximum length of a filename plus NUL */ | ||
20 | #define AFSPATHMAX 1024 /* maximum length of a pathname plus NUL */ | ||
21 | #define AFSOPAQUEMAX 1024 /* maximum length of an opaque field */ | ||
19 | 22 | ||
20 | typedef unsigned afs_volid_t; | 23 | typedef unsigned afs_volid_t; |
21 | typedef unsigned afs_vnodeid_t; | 24 | typedef unsigned afs_vnodeid_t; |
@@ -143,4 +146,24 @@ struct afs_volsync { | |||
143 | time_t creation; /* volume creation time */ | 146 | time_t creation; /* volume creation time */ |
144 | }; | 147 | }; |
145 | 148 | ||
149 | /* | ||
150 | * AFS volume status record | ||
151 | */ | ||
152 | struct afs_volume_status { | ||
153 | u32 vid; /* volume ID */ | ||
154 | u32 parent_id; /* parent volume ID */ | ||
155 | u8 online; /* true if volume currently online and available */ | ||
156 | u8 in_service; /* true if volume currently in service */ | ||
157 | u8 blessed; /* same as in_service */ | ||
158 | u8 needs_salvage; /* true if consistency checking required */ | ||
159 | u32 type; /* volume type (afs_voltype_t) */ | ||
160 | u32 min_quota; /* minimum space set aside (blocks) */ | ||
161 | u32 max_quota; /* maximum space this volume may occupy (blocks) */ | ||
162 | u32 blocks_in_use; /* space this volume currently occupies (blocks) */ | ||
163 | u32 part_blocks_avail; /* space available in volume's partition */ | ||
164 | u32 part_max_blocks; /* size of volume's partition */ | ||
165 | }; | ||
166 | |||
167 | #define AFS_BLOCK_SIZE 1024 | ||
168 | |||
146 | #endif /* AFS_H */ | 169 | #endif /* AFS_H */ |