extend FSDEV_ID for use w/ /dev

This commit is contained in:
Doug MacEachern 2007-11-04 18:17:57 +00:00
parent 76beb87f73
commit 079759ca57
1 changed files with 3 additions and 1 deletions

View File

@ -321,7 +321,9 @@ int sigar_group_name_get(sigar_t *sigar, int gid, char *buf, int buflen);
SIGAR_DISK_STATS_INIT(&fsusage->disk)
/* key used for filesystem (/) -> device (/dev/hda1) mapping */
#define SIGAR_FSDEV_ID(sb) ((sb).st_ino + (sb).st_dev)
/* and disk_usage cache for service_time */
#define SIGAR_FSDEV_ID(sb) \
(S_ISBLK((sb).st_mode) ? (sb).st_rdev : ((sb).st_ino + (sb).st_dev))
#if defined(WIN32) || defined(NETWARE)
int sigar_get_iftype(const char *name, int *type, int *inst);