From: Jan Fajerski Date: Mon, 27 Apr 2020 09:44:20 +0000 (+0200) Subject: ceph-volume: api/lvm - query LV units in bytes X-Git-Tag: v14.2.13~5^2~31 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1bd4649789be211b49057fe093640a43b81aa2ef;p=ceph.git ceph-volume: api/lvm - query LV units in bytes Signed-off-by: Jan Fajerski (cherry picked from commit de7d67603a135825d8b4e37a06dd4b6a12dbcf1c) --- diff --git a/src/ceph-volume/ceph_volume/api/lvm.py b/src/ceph-volume/ceph_volume/api/lvm.py index 778614f96ff..c862b3d80af 100644 --- a/src/ceph-volume/ceph_volume/api/lvm.py +++ b/src/ceph-volume/ceph_volume/api/lvm.py @@ -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):