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: v15.2.9~122^2~28^2~34 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b87f5e928c305b55eec03c6675d6907e2e3af245;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 0e6f42dac1db9..99524f35cd0ef 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):