|
Lines 70-96
Link Here
|
| 70 |
*/ |
70 |
*/ |
| 71 |
|
71 |
|
| 72 |
#define MFSNAMELEN 16 /* length of fs type name, including null */ |
72 |
#define MFSNAMELEN 16 /* length of fs type name, including null */ |
| 73 |
#define MNAMELEN 90 /* length of buffer for returned name */ |
73 |
#define MNAMELEN (88 - 2 * sizeof(long)) /* size of on/from name bufs */ |
| 74 |
|
74 |
|
| 75 |
struct statfs { |
75 |
struct statfs { |
| 76 |
long f_bsize; /* fundamental file system block size */ |
76 |
long f_spare2; /* placeholder */ |
| 77 |
long f_iosize; /* optimal transfer block size */ |
77 |
long f_bsize; /* fundamental file system block size */ |
| 78 |
long f_blocks; /* total data blocks in file system */ |
78 |
long f_iosize; /* optimal transfer block size */ |
| 79 |
long f_bfree; /* free blocks in fs */ |
79 |
long f_blocks; /* total data blocks in file system */ |
| 80 |
long f_bavail; /* free blocks avail to non-superuser */ |
80 |
long f_bfree; /* free blocks in fs */ |
| 81 |
long f_files; /* total file nodes in file system */ |
81 |
long f_bavail; /* free blocks avail to non-superuser */ |
| 82 |
long f_ffree; /* free file nodes in fs */ |
82 |
long f_files; /* total file nodes in file system */ |
| 83 |
fsid_t f_fsid; /* file system id */ |
83 |
long f_ffree; /* free file nodes in fs */ |
| 84 |
uid_t f_owner; /* user that mounted the file system */ |
84 |
fsid_t f_fsid; /* file system id */ |
| 85 |
int f_type; /* type of file system */ |
85 |
uid_t f_owner; /* user that mounted the file system */ |
| 86 |
int f_flags; /* copy of mount flags */ |
86 |
int f_type; /* type of file system (see below) */ |
| 87 |
long f_syncwrites; /* count of sync writes since mount */ |
87 |
int f_flags; /* copy of mount exported flags */ |
| 88 |
long f_asyncwrites; /* count of async writes since mount */ |
88 |
long f_syncwrites; /* count of sync writes since mount */ |
| 89 |
char f_fstypename[MFSNAMELEN];/* fs type name */ |
89 |
long f_asyncwrites; /* count of async writes since mount */ |
| 90 |
char f_mntonname[MNAMELEN]; /* mount point */ |
90 |
char f_fstypename[MFSNAMELEN];/* fs type name */ |
| 91 |
long f_syncreads; /* count of sync reads since mount */ |
91 |
char f_mntonname[MNAMELEN];/* directory on which mounted */ |
| 92 |
long f_asyncreads; /* count of async reads since mount */ |
92 |
long f_syncreads; /* count of sync reads since mount */ |
| 93 |
char f_mntfromname[MNAMELEN]; /* mounted file system */ |
93 |
long f_asyncreads; /* count of async reads since mount */ |
|
|
94 |
short f_spares1; /* unused spare */ |
| 95 |
char f_mntfromname[MNAMELEN];/* mounted filesystem */ |
| 96 |
short f_spares2; /* unused spare */ |
| 97 |
long f_spare[2]; /* unused spare */ |
| 94 |
}; |
98 |
}; |
| 95 |
.Ed |
99 |
.Ed |
| 96 |
The flags that may be returned include: |
100 |
The flags that may be returned include: |