]> 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>
Fri, 25 Sep 2020 09:48:34 +0000 (11:48 +0200)
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
src/ceph-volume/ceph_volume/api/lvm.py

index 778614f96ff52ad61f85fdf4a73a7922faf77f61..c862b3d80af9bda6ae95f79f8cf1b3ce9fa6371d 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):