aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8>2011-02-11 15:19:00 +0000
committerpcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8>2011-02-11 15:19:00 +0000
commitadac025d42a613938ea517d1b79898c7379675a4 (patch)
tree78b632c8a454e4aba6ec05778d4f046803f45862
parentbc0371fb58fb02a607010a99e632c475ff13c12d (diff)
downloadsos-adac025d42a613938ea517d1b79898c7379675a4.tar.gz
[plugins] devicemapper: expose an 'lvmdump -a' option
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1078 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r--sos/plugins/devicemapper.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/sos/plugins/devicemapper.py b/sos/plugins/devicemapper.py
index 0c15dce6..01dfe26f 100644
--- a/sos/plugins/devicemapper.py
+++ b/sos/plugins/devicemapper.py
@@ -21,12 +21,16 @@ class devicemapper(sos.plugintools.PluginBase):
"""
optionList = [("lvmdump", 'collect raw metadata from PVs', 'slow', False)]
+ optionList = [("lvmdump-a", 'use the -a option of lvmdump (requires the "lvmdump" option)', 'slow', False)]
dmraidOptions = ['V','b','r','s','tay','rD']
def do_lvmdump(self):
"""Collects raw metadata directly from the PVs using dd
"""
- self.collectExtOutput("lvmdump -d '%s'" % os.path.join(self.cInfo['dstroot'],"lvmdump"))
+ cmd = "lvmdump -d '%s'" % os.path.join(self.cInfo['dstroot'],"lvmdump")
+ if self.getOption('lvmdump-a'):
+ cmd += " -a"
+ self.collectExtOutput(cmd)
def setup(self):
self.collectExtOutput("/sbin/dmsetup info -c")