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

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