From 37a617ddc6d5e00598f1e615d7056212220834f1 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Sat, 1 Dec 2018 09:05:17 +0100 Subject: [PATCH] rd_stats.h: Reorder fields in stats_disk structure New field dc_ticks must be added *after* all other fields of same type ("unsigned int" here). This is compulsory to make older versions of sar/sadf able to read this structure. Signed-off-by: Sebastien GODARD --- rd_stats.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rd_stats.h b/rd_stats.h index 7371990..07b853c 100644 --- a/rd_stats.h +++ b/rd_stats.h @@ -264,11 +264,11 @@ struct stats_disk { unsigned long dc_sect __attribute__ ((aligned (8))); unsigned int rd_ticks __attribute__ ((aligned (8))); unsigned int wr_ticks; - unsigned int dc_ticks; unsigned int tot_ticks; unsigned int rq_ticks; unsigned int major; unsigned int minor; + unsigned int dc_ticks; }; #define STATS_DISK_SIZE (sizeof(struct stats_disk)) -- 2.40.0