]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Ensure device node exists before wiping during volume deletion
authorEric Harney <eharney@redhat.com>
Mon, 22 Oct 2012 22:02:17 +0000 (18:02 -0400)
committerEric Harney <eharney@redhat.com>
Mon, 22 Oct 2012 22:02:17 +0000 (18:02 -0400)
commit8b58a4605f83de6a6286ac9de2634dd3269c22b1
treeaabf875b9ccdd2022bded1fe934b8c8f5976028a
parent186e32da976b5b9a28952fceb967e2a7119b5851
Ensure device node exists before wiping during volume deletion

If the LVM device node is missing when a Cinder volume is deleted,
a large amount of data will be written to /dev/.  Check that the
device node exists before performing a _copy_volume('/dev/zero'...)
to wipe it.  Fixes bug 1070023.

Change-Id: I77a0a5545a54a4adc905a781ed8120db7adccc27
cinder/volume/driver.py