1 #ifndef __VFS_TYPE_H__ 2 #define __VFS_TYPE_H__ 3 4 /* VFS<->FS communication */ 5 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; 11 12 /* 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. 15 */ 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 */ 21 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 */ 26 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 */ 31 32 uint64_t f_syncreads; /* count of sync reads since mount */ 33 uint64_t f_syncwrites; /* count of sync writes since mount */ 34 35 uint64_t f_asyncreads; /* count of async reads since mount */ 36 uint64_t f_asyncwrites; /* count of async writes since mount */ 37 38 unsigned long f_namemax; /* maximum filename length */ 39 }; 40 41 struct smap { 42 unsigned int smap_num; /* one-based number into smap array */ 43 endpoint_t smap_endpt; /* driver endpoint, NONE if free */ 44 char smap_label[LABEL_MAX]; /* driver label */ 45 int smap_sel_busy; /* doing initial select on socket? */ 46 struct filp * smap_sel_filp; /* socket being selected on */ 47 }; 48 49 typedef int32_t sockid_t; 50 51 #endif 52