37 |
|
#include <sys/mnttab.h> |
38 |
|
#include <sys/statvfs.h> |
39 |
|
#include <kstat.h> |
40 |
< |
#define VALID_FS_TYPES {"ufs", "tmpfs", "vxfs", "nfs"} |
40 |
> |
#define VALID_FS_TYPES {"ufs", "tmpfs", "vxfs", "nfs", "zfs"} |
41 |
|
#endif |
42 |
|
|
43 |
|
#if defined(LINUX) || defined(CYGWIN) |
67 |
|
#include <sys/dkstat.h> |
68 |
|
#include <devstat.h> |
69 |
|
#define VALID_FS_TYPES {"hpfs", "msdosfs", "ntfs", "udf", "ext2fs", \ |
70 |
< |
"ufs", "mfs", "nfs"} |
70 |
> |
"ufs", "mfs", "nfs", "zfs"} |
71 |
|
#endif |
72 |
|
#if defined(NETBSD) || defined(OPENBSD) |
73 |
|
#include <sys/param.h> |
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); |