ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/disk_stats.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/disk_stats.c (file contents):
Revision 1.83 by tdb, Sat Sep 24 13:29:22 2005 UTC vs.
Revision 1.87 by tdb, Sat May 16 01:01:31 2009 UTC

# Line 37 | Line 37
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", "zfs"}
41   #endif
42  
43   #if defined(LINUX) || defined(CYGWIN)
# Line 67 | Line 67
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>
# Line 87 | Line 87
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  
# Line 756 | Line 756 | sg_disk_io_stats *sg_get_disk_io_stats(int *entries){
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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines