From adac025d42a613938ea517d1b79898c7379675a4 Mon Sep 17 00:00:00 2001 From: pcarrier Date: Fri, 11 Feb 2011 15:19:00 +0000 Subject: [plugins] devicemapper: expose an 'lvmdump -a' option git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1078 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- sos/plugins/devicemapper.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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") -- cgit