aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authornavid <navid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-10-05 09:55:45 +0000
committernavid <navid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-10-05 09:55:45 +0000
commitbb64815142fcf2af6c519dcb78a92f6725fb200d (patch)
treec7b028f168b091ca2fd49921d467fefd74d363dd /src/lib
parent2ca6669f8e71dd06390b808d391edec2c746a43d (diff)
downloadsos-bb64815142fcf2af6c519dcb78a92f6725fb200d.tar.gz
devicemapper: collect udevinfo for all block devices
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@416 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/sos/plugins/devicemapper.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/sos/plugins/devicemapper.py b/src/lib/sos/plugins/devicemapper.py
index 46662c70..c2be8eba 100644
--- a/src/lib/sos/plugins/devicemapper.py
+++ b/src/lib/sos/plugins/devicemapper.py
@@ -25,7 +25,7 @@ class devicemapper(sos.plugintools.PluginBase):
def do_lvmdump(self):
"""Collects raw metadata directly from the PVs using dd
"""
- sosGetCommandOutput("lvmdump -d %s" % os.path.join(self.cInfo['dstroot'],"lvmdump"), 120)
+ sosGetCommandOutput("lvmdump -d %s" % os.path.join(self.cInfo['dstroot'],"lvmdump"))
def setup(self):
self.collectExtOutput("/sbin/dmsetup info -c")
@@ -53,4 +53,9 @@ class devicemapper(sos.plugintools.PluginBase):
if self.getOption('lvmdump'):
self.do_lvmdump()
+ for disk in os.listdir("/sys/block"):
+ if disk in [ ".", ".." ] or disk.startswith("ram"):
+ continue
+ self.collectExtOutput("/usr/bin/udevinfo -ap /sys/block/%s" % (disk))
+
return