#include "common.h"
#define RRD_TYPE_DISK "disk"
#define DISK_TYPE_UNKNOWN 0
#define DISK_TYPE_PHYSICAL 1
#define DISK_TYPE_PARTITION 2
#define DISK_TYPE_VIRTUAL 3
#define CONFIG_SECTION_DISKSTATS "plugin:proc:/proc/diskstats"
#define DEFAULT_EXCLUDED_DISKS "loop* ram*"
static struct disk {
char *disk; // the name of the disk (sda, sdb, etc, after being looked up)
char *device; // the device of the disk (before being looked up)
unsigned long major;
unsigned long minor;
int sector_size;
int type;
char *mount_point;
// disk options caching
int do_io;
int do_ops;
int do_mops;
int do_iotime;
int do_qops;
int do_util;
int do_backlog;
int do_bcache;
int updated;
int device_is_bcache;
char