Handle LVM and RAID

This commit is contained in:
James Dominic P. Guana
2020-05-26 10:57:48 +08:00
committed by Robert Roth
parent 9e62440b31
commit 9cbb3b91f1
6 changed files with 229 additions and 36 deletions

View File

@@ -42,6 +42,14 @@ G_BEGIN_DECLS
typedef struct _glibtop_disk glibtop_disk;
struct _partition_info
{
char name[256];
char type[256];
char raid_num[256];
int max;
};
struct _glibtop_disk
{
guint64 xdisk_sectors_read [GLIBTOP_NDISK]; /* GLIBTOP_XDISK_SECTORS_READ */
@@ -50,7 +58,7 @@ struct _glibtop_disk
guint64 xdisk_time_write [GLIBTOP_NDISK]; /* GLIBTOP_XDISK_TIME_WRITE */
};
void glibtop_get_disk(glibtop_disk *buf);
void glibtop_get_disk (glibtop_disk *buf);
#if GLIBTOP_SUID_DISK
#define glibtop_get_disk_r glibtop_get_disk_p