diff options
author | James Dominic P. Guana <guana.histark@gmail.com> | 2021-04-10 18:20:13 +0800 |
---|---|---|
committer | Robert Roth <robert.roth.off@gmail.com> | 2021-04-23 09:48:11 +0000 |
commit | 48595809ed33c216a05a7fb0b0ac73dcd4635624 (patch) | |
tree | 735c694dcb30e90c59ea3061994f69058828f544 /include/glibtop/disk.h | |
parent | a067db056927db232a2eb8cf79d4af096962eced (diff) | |
download | libgtop-48595809ed33c216a05a7fb0b0ac73dcd4635624.tar.gz |
Revert "Revert "Handle LVM and RAID""
This reverts commit 30bf8d04183c26ca48c6cd4efe4c24058a082783.
Diffstat (limited to 'include/glibtop/disk.h')
-rw-r--r-- | include/glibtop/disk.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/glibtop/disk.h b/include/glibtop/disk.h index 8843112c..cdde7796 100644 --- a/include/glibtop/disk.h +++ b/include/glibtop/disk.h @@ -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 |