37 |
|
#include <sys/mnttab.h> |
38 |
|
#include <sys/statvfs.h> |
39 |
|
#include <kstat.h> |
40 |
< |
#define VALID_FS_TYPES {"ufs", "tmpfs"} |
40 |
> |
#define VALID_FS_TYPES {"ufs", "tmpfs", "vxfs"} |
41 |
|
#endif |
42 |
|
|
43 |
|
#if defined(LINUX) || defined(CYGWIN) |
122 |
|
#endif |
123 |
|
#ifdef ALLBSD |
124 |
|
int nummnt; |
125 |
+ |
#ifdef HAVE_STATVFS |
126 |
+ |
struct statvfs *mp; |
127 |
+ |
#else |
128 |
|
struct statfs *mp; |
129 |
|
#endif |
130 |
+ |
#endif |
131 |
|
|
132 |
|
#ifdef ALLBSD |
133 |
|
nummnt=getmntinfo(&mp , MNT_LOCAL); |
414 |
|
rbytes = stats[i].dk_rbytes; |
415 |
|
wbytes = stats[i].dk_wbytes; |
416 |
|
#else |
417 |
< |
/* Before 1.7, NetBSD merged reads and writes. */ |
417 |
> |
/* Before 2.0, NetBSD merged reads and writes. */ |
418 |
|
rbytes = wbytes = stats[i].dk_bytes; |
419 |
|
#endif |
420 |
|
#else |
421 |
+ |
#ifdef HAVE_DS_RBYTES |
422 |
+ |
rbytes = stats[i].ds_rbytes; |
423 |
+ |
wbytes = stats[i].ds_wbytes; |
424 |
+ |
#else |
425 |
+ |
/* Before 3.5, OpenBSD merged reads and writes */ |
426 |
|
rbytes = wbytes = stats[i].ds_bytes; |
427 |
+ |
#endif |
428 |
|
#endif |
429 |
|
|
430 |
|
/* Don't keep stats for disks that have never been used. */ |