Merge "Update LVM lockfile name identical to RAW and Qcow"

This commit is contained in:
Jenkins
2014-12-08 18:41:36 +00:00
committed by Gerrit Code Review

View File

@@ -539,7 +539,9 @@ class Lvm(Image):
CONF.ephemeral_storage_encryption.key_size,
key)
@utils.synchronized(base, external=True, lock_path=self.lock_path)
filename = os.path.split(base)[-1]
@utils.synchronized(filename, external=True, lock_path=self.lock_path)
def create_lvm_image(base, size):
base_size = disk.get_disk_size(base)
self.verify_base_size(base, size, base_size=base_size)