37 |
|
#include <sys/mnttab.h> |
38 |
|
#include <sys/statvfs.h> |
39 |
|
#include <kstat.h> |
40 |
< |
#define VALID_FS_TYPES {"ufs", "tmpfs", "vxfs"} |
40 |
> |
#define VALID_FS_TYPES {"ufs", "tmpfs", "vxfs", "nfs"} |
41 |
|
#endif |
42 |
|
|
43 |
|
#if defined(LINUX) || defined(CYGWIN) |
87 |
|
#include <dirent.h> |
88 |
|
#include <stdio.h> |
89 |
|
#include <time.h> |
90 |
< |
#define VALID_FS_TYPES {"vxfs", "hfs"} |
90 |
> |
#define VALID_FS_TYPES {"vxfs", "hfs", "nfs"} |
91 |
|
#define DISK_BATCH 30 |
92 |
|
#endif |
93 |
|
|
756 |
|
diskio_stats_ptr->write_bytes=kios.nwritten; |
757 |
|
if (sg_update_string(&diskio_stats_ptr->disk_name, |
758 |
|
sg_get_svr_from_bsd(ksp->ks_name)) < 0) { |
759 |
+ |
kstat_close(kc); |
760 |
|
return NULL; |
761 |
|
} |
762 |
|
diskio_stats_ptr->systime=time(NULL); |