]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: api/lvm - query LV units in bytes
authorJan Fajerski <jfajerski@suse.com>
Mon, 27 Apr 2020 09:44:20 +0000 (11:44 +0200)
committerJan Fajerski <jfajerski@suse.com>
Wed, 7 Oct 2020 09:22:39 +0000 (11:22 +0200)
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit de7d67603a135825d8b4e37a06dd4b6a12dbcf1c)

src/ceph-volume/ceph_volume/api/lvm.py

index 0e6f42dac1db976f6cba860a14989d29696243f7..99524f35cd0efb0819953e4d89ef370c0ec0173c 100644 (file)
@@ -740,7 +740,8 @@ def get_device_vgs(device, name_prefix=''):
 ###############################
 
 LV_FIELDS = 'lv_tags,lv_path,lv_name,vg_name,lv_uuid,lv_size'
-LV_CMD_OPTIONS =  ['--noheadings', '--readonly', '--separator=";"', '-a']
+LV_CMD_OPTIONS =  ['--noheadings', '--readonly', '--separator=";"', '-a',
+                   '--units=b', '--nosuffix']
 
 
 class Volume(object):