From 837241fa91dd2d81850526580cd560fb6550c7b8 Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Fri, 28 Feb 2014 09:11:05 -0500 Subject: cinder: lvm backing file size configurable Allow backing file size for LVM backend driver (for cinder volume serivce) to be configurable. Signed-off-by: Vu Tran Signed-off-by: Bruce Ashfield --- meta-openstack/recipes-devtools/python/python-cinder_git.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta-openstack/recipes-devtools/python/python-cinder_git.bb') diff --git a/meta-openstack/recipes-devtools/python/python-cinder_git.bb b/meta-openstack/recipes-devtools/python/python-cinder_git.bb index a706223..c1ca58c 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder_git.bb +++ b/meta-openstack/recipes-devtools/python/python-cinder_git.bb @@ -54,6 +54,8 @@ do_install_append() { cp -r tools ${CINDER_CONF_DIR} } +CINDER_LVM_VOLUME_BACKING_FILE_SIZE ?= "2G" + pkg_postinst_${SRCNAME}-setup () { if [ "x$D" != "x" ]; then exit 1 @@ -69,7 +71,7 @@ pkg_postinst_${SRCNAME}-setup () { cinder-manage db sync #Create cinder volume group backing file - [[ -f /etc/cinder/volumes-backing ]] || truncate -s 2G /etc/cinder/volumes-backing + [[ -f /etc/cinder/volumes-backing ]] || truncate -s ${CINDER_LVM_VOLUME_BACKING_FILE_SIZE} /etc/cinder/volumes-backing echo "include /etc/cinder/data/volumes/*" >> /etc/tgt/targets.conf } -- cgit v1.2.3-54-g00ecf