blob: db3516aa292b33e262bd83d41a538c2c1ebf5de1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--- a/src/linux.c
+++ b/src/linux.c
@@ -80,6 +80,10 @@
#define NBD_MAJOR 43
#endif
+#if !defined(DM_MAJOR)
+#define DM_MAJOR 253
+#endif
+
#ifdef HAVE_IWLIB
#include <iwlib.h>
#endif
@@ -2336,7 +2340,8 @@ int update_diskio(void)
*
* XXX: ignore devices which are part of a SW RAID (MD_MAJOR) */
if (col_count == 5 && major != LVM_BLK_MAJOR && major != NBD_MAJOR
- && major != RAMDISK_MAJOR && major != LOOP_MAJOR) {
+ && major != RAMDISK_MAJOR && major != LOOP_MAJOR
+ && major != DM_MAJOR ) {
/* check needed for kernel >= 2.6.31, see sf #2942117 */
if (is_disk(devbuf)) {
total_reads += reads;
|