Blame SOURCES/procps-ng-3.3.10-vmstat-devlen.patch

459053
diff -Naur procps-ng-3.3.10.orig/proc/sysinfo.c procps-ng-3.3.10/proc/sysinfo.c
459053
--- procps-ng-3.3.10.orig/proc/sysinfo.c	2016-01-14 15:57:33.000000000 +0100
459053
+++ procps-ng-3.3.10/proc/sysinfo.c	2016-01-14 16:40:01.290000000 +0100
459053
@@ -988,7 +988,7 @@
459053
   int cPartition = 0;
459053
   int fields;
459053
   unsigned dummy;
459053
-  char devname[32];
459053
+  char devname[35];
459053
 
459053
   *disks = NULL;
459053
   *partitions = NULL;
459053
@@ -1001,10 +1001,10 @@
459053
       fclose(fd);
459053
       break;
459053
     }
459053
-    fields = sscanf(buff, " %*d %*d %15s %*u %*u %*u %*u %*u %*u %*u %*u %*u %*u %u", devname, &dummy);
459053
+    fields = sscanf(buff, " %*d %*d %34s %*u %*u %*u %*u %*u %*u %*u %*u %*u %*u %u", devname, &dummy);
459053
     if (fields == 2 && is_disk(devname)){
459053
       (*disks) = xrealloc(*disks, (cDisk+1)*sizeof(struct disk_stat));
459053
-      sscanf(buff,  "   %*d    %*d %15s %u %u %llu %u %u %u %llu %u %u %u %u",
459053
+      sscanf(buff,  "   %*d    %*d %31s %u %u %llu %u %u %u %llu %u %u %u %u",
459053
         //&disk_major,
459053
         //&disk_minor,
459053
         (*disks)[cDisk].disk_name,
459053
@@ -1026,8 +1026,8 @@
459053
       (*partitions) = xrealloc(*partitions, (cPartition+1)*sizeof(struct partition_stat));
459053
       fflush(stdout);
459053
       sscanf(buff,  (fields == 2)
459053
-          ? "   %*d    %*d %15s %u %*u %llu %*u %u %*u %llu %*u %*u %*u %*u"
459053
-          : "   %*d    %*d %15s %u %llu %u %llu",
459053
+          ? "   %*d    %*d %34s %u %*u %llu %*u %u %*u %llu %*u %*u %*u %*u"
459053
+          : "   %*d    %*d %34s %u %llu %u %llu",
459053
         //&part_major,
459053
         //&part_minor,
459053
         (*partitions)[cPartition].partition_name,
459053
diff -Naur procps-ng-3.3.10.orig/proc/sysinfo.h procps-ng-3.3.10/proc/sysinfo.h
459053
--- procps-ng-3.3.10.orig/proc/sysinfo.h	2014-09-23 13:40:36.000000000 +0200
459053
+++ procps-ng-3.3.10/proc/sysinfo.h	2016-01-14 16:30:02.326000000 +0100
459053
@@ -101,7 +101,7 @@
459053
 typedef struct disk_stat{
459053
 	unsigned long long reads_sectors;
459053
 	unsigned long long written_sectors;
459053
-	char               disk_name [16];
459053
+	char               disk_name [32];
459053
 	unsigned           inprogress_IO;
459053
 	unsigned           merged_reads;
459053
 	unsigned           merged_writes;
459053
@@ -115,7 +115,7 @@
459053
 }disk_stat;
459053
 
459053
 typedef struct partition_stat{
459053
-	char partition_name [16];
459053
+	char partition_name [35];
459053
 	unsigned long long reads_sectors;
459053
 	unsigned           parent_disk;  // index into a struct disk_stat array
459053
 	unsigned           reads;