]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Brick LVM: Optimize get_volume
authorEric Harney <eharney@redhat.com>
Thu, 23 Oct 2014 15:28:29 +0000 (11:28 -0400)
committerEric Harney <eharney@redhat.com>
Thu, 23 Oct 2014 15:30:44 +0000 (11:30 -0400)
commitdcda67053df5dc0240c743537dc1b9c4a3231b61
treee968047a44580d9098b2878fc54d7a110119ab89
parent90d7c0c2b3bf6f115e62b629679f262f04ca7573
Brick LVM: Optimize get_volume

When we only want the LV information for a single volume, call
"lvs" with the volume name specified.

This should reduce unnecessary load of calling "lvs" for the
whole VG.

Related-Bug: #1373513

Change-Id: Ifbb679e9160f44fe52ecba7bf19aa0eb5bb133f1
cinder/brick/local_dev/lvm.py