Blame SOURCES/sos-bz1183770-parted-no-human-readable.patch

c81b6a
From c77c14ecd3e7e35a331cef169b08ffcb318952c2 Mon Sep 17 00:00:00 2001
c81b6a
From: Shane Bradley <sbradley@redhat.com>
c81b6a
Date: Tue, 20 Jan 2015 11:08:59 -0500
c81b6a
Subject: [PATCH] [block] don't use parted human readable output
c81b6a
c81b6a
Changed the parted command to return data in sectors units
c81b6a
instead of human readable form.
c81b6a
c81b6a
Fixes #471.
c81b6a
c81b6a
Signed-off-by: Shane Bradley <sbradley@redhat.com>
c81b6a
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
c81b6a
---
c81b6a
 sos/plugins/block.py | 2 +-
c81b6a
 1 file changed, 1 insertion(+), 1 deletion(-)
c81b6a
c81b6a
diff --git a/sos/plugins/block.py b/sos/plugins/block.py
c81b6a
index 7984f0d..e02304c 100644
c81b6a
--- a/sos/plugins/block.py
c81b6a
+++ b/sos/plugins/block.py
c81b6a
@@ -46,7 +46,7 @@ class Block(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
c81b6a
                 disk_path = os.path.join('/dev/', disk)
c81b6a
                 self.add_cmd_output([
c81b6a
                     "udevadm info -ap /sys/block/%s" % (disk),
c81b6a
-                    "parted -s %s print" % (disk_path),
c81b6a
+                    "parted -s %s unit s print" % (disk_path),
c81b6a
                     "fdisk -l %s" % disk_path
c81b6a
                 ])
c81b6a
 
c81b6a
-- 
c81b6a
1.8.3.1
c81b6a