make vfs & filesystems use failable copying
[minix3.git] / servers / vfs / type.h
blob673be5f1f4bf3e85a12a795d303290a8f8c8e048
1 #ifndef __VFS_TYPE_H__
2 #define __VFS_TYPE_H__
4 /* VFS<->FS communication */
6 typedef struct {
7 int c_max_reqs; /* Max requests an FS can handle simultaneously */
8 int c_cur_reqs; /* Number of requests the FS is currently handling */
9 struct worker_thread *c_req_queue;/* Queue of procs waiting to send a message */
10 } comm_t;
13 * Cached statvfs fields. We are not using struct statvfs itself because that
14 * would add over 2K of unused memory per mount table entry.
16 struct statvfs_cache {
17 unsigned long f_flag; /* copy of mount exported flags */
18 unsigned long f_bsize; /* file system block size */
19 unsigned long f_frsize; /* fundamental file system block size */
20 unsigned long f_iosize; /* optimal file system block size */
22 fsblkcnt_t f_blocks; /* number of blocks in file system, */
23 fsblkcnt_t f_bfree; /* free blocks avail in file system */
24 fsblkcnt_t f_bavail; /* free blocks avail to non-root */
25 fsblkcnt_t f_bresvd; /* blocks reserved for root */
27 fsfilcnt_t f_files; /* total file nodes in file system */
28 fsfilcnt_t f_ffree; /* free file nodes in file system */
29 fsfilcnt_t f_favail; /* free file nodes avail to non-root */
30 fsfilcnt_t f_fresvd; /* file nodes reserved for root */
32 uint64_t f_syncreads; /* count of sync reads since mount */
33 uint64_t f_syncwrites; /* count of sync writes since mount */
35 uint64_t f_asyncreads; /* count of async reads since mount */
36 uint64_t f_asyncwrites; /* count of async writes since mount */
38 unsigned long f_namemax; /* maximum filename length */
41 #endif