Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Do not return md and dm devices during disk discovery

  • Loading branch information...
commit 48bdd3e47bbcbcbd0d33683ce6de2966b2e68950 1 parent 56222d5
@dagwieers authored
Showing with 4 additions and 0 deletions.
  1. +1 −0  ChangeLog
  2. +3 −0  dstat
View
1  ChangeLog
@@ -3,6 +3,7 @@
- Added external plugin dstat_vz for openvz cpu statistics
- Removed the underscoring of the counter titles
- Added underlining for the counter titles
+- Do not return md and dm devices during disk discovery
* 0.6.3 - Amsterdam - released 26/06/2006
- Changed default (silver) color of delimiter to gray
View
3  dstat
@@ -567,6 +567,7 @@ class dstat_disk(dstat):
if len(l) < 13: continue
if l[3:] == ['0',] * 11: continue
name = l[2]
+ if re.match('(md[0-9]+|dm-[0-9]+)', name): continue
ret.append(name)
for item in list: ret.append(item)
return ret
@@ -631,6 +632,7 @@ class dstat_disk24(dstat):
l = line.split()
if len(l) < 15 or l[0] == 'major' or int(l[1]) % 16 != 0: continue
name = l[3]
+ if re.match('(md[0-9]+|dm-[0-9]+)', name): continue
ret.append(name)
for item in list: ret.append(item)
return ret
@@ -700,6 +702,7 @@ class dstat_disk24old(dstat):
l = m.groups()
if len(l) < 4: continue
name = dev(int(l[0]), int(l[1]))
+ if re.match('(md[0-9]+)', name): continue
ret.append(name)
break
for item in list: ret.append(item)
Please sign in to comment.
Something went wrong with that request. Please try again.