summaryrefslogtreecommitdiff
path: root/fio.h
diff options
context:
space:
mode:
Diffstat (limited to 'fio.h')
-rw-r--r--fio.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/fio.h b/fio.h
index 9131792f..63cd83f5 100644
--- a/fio.h
+++ b/fio.h
@@ -753,6 +753,10 @@ struct disk_util_stat {
*/
struct disk_util {
struct flist_head list;
+ /* If this disk is a slave, hook it into the master's
+ * list using this head.
+ */
+ struct flist_head slavelist;
char *name;
char *sysfs_root;
@@ -762,6 +766,15 @@ struct disk_util {
struct disk_util_stat dus;
struct disk_util_stat last_dus;
+ /* For software raids, this entry maintains pointers to the
+ * entries for the slave devices. The disk_util entries for
+ * the slaves devices should primarily be maintained through
+ * the disk_list list, i.e. for memory allocation and
+ * de-allocation, etc. Whereas this list should be used only
+ * for aggregating a software RAID's disk util figures.
+ */
+ struct flist_head slaves;
+
unsigned long msec;
struct timeval time;
};