diff options
author | David Howells <dhowells@redhat.com> | 2007-05-10 22:22:20 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-11 08:29:32 -0700 |
commit | 45222b9e02fb282eb0a8007a3d992dd229ec2410 (patch) | |
tree | 2160228a23c700437bda0898d3a700ac499b941d /fs/afs/afs.h | |
parent | 0f300ca9284caabdd2c07c7f91b90f1f530f614e (diff) | |
download | kernel_goldelico_gta04-45222b9e02fb282eb0a8007a3d992dd229ec2410.zip kernel_goldelico_gta04-45222b9e02fb282eb0a8007a3d992dd229ec2410.tar.gz kernel_goldelico_gta04-45222b9e02fb282eb0a8007a3d992dd229ec2410.tar.bz2 |
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 52d0752..2452579 100644 --- a/fs/afs/afs.h +++ b/fs/afs/afs.h @@ -16,6 +16,9 @@ #define AFS_MAXCELLNAME 64 /* maximum length of a cell name */ #define AFS_MAXVOLNAME 64 /* maximum length of a volume name */ +#define AFSNAMEMAX 256 /* maximum length of a filename plus NUL */ +#define AFSPATHMAX 1024 /* maximum length of a pathname plus NUL */ +#define AFSOPAQUEMAX 1024 /* maximum length of an opaque field */ typedef unsigned afs_volid_t; typedef unsigned afs_vnodeid_t; @@ -143,4 +146,24 @@ struct afs_volsync { time_t creation; /* volume creation time */ }; +/* + * AFS volume status record + */ +struct afs_volume_status { + u32 vid; /* volume ID */ + u32 parent_id; /* parent volume ID */ + u8 online; /* true if volume currently online and available */ + u8 in_service; /* true if volume currently in service */ + u8 blessed; /* same as in_service */ + u8 needs_salvage; /* true if consistency checking required */ + u32 type; /* volume type (afs_voltype_t) */ + u32 min_quota; /* minimum space set aside (blocks) */ + u32 max_quota; /* maximum space this volume may occupy (blocks) */ + u32 blocks_in_use; /* space this volume currently occupies (blocks) */ + u32 part_blocks_avail; /* space available in volume's partition */ + u32 part_max_blocks; /* size of volume's partition */ +}; + +#define AFS_BLOCK_SIZE 1024 + #endif /* AFS_H */ |