]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fixes ceph volume restore to larger image than source
authorEdward Hope-Morley <edward.hope-morley@canonical.com>
Fri, 13 Sep 2013 19:20:03 +0000 (15:20 -0400)
committerEdward Hope-Morley <edward.hope-morley@canonical.com>
Mon, 16 Sep 2013 11:05:54 +0000 (12:05 +0100)
commite54f34245880c105225675d9fb91d2ad1997f7ba
tree60eba6b08a59fbfc110e150d01a4449d1d77e3bc
parente34ab12fbf3c06036e8d07dbf702f5c24b5b275c
Fixes ceph volume restore to larger image than source

If a backup is restored to a volume that is bigger than the
backup itself, which could be the case if --volume-id is
supplied, we need the option to set extraneous extents to zero
i.e. set extents after those from the backup to zero.

Change-Id: I3c226b9e7429371f6cd9b9bd81071ff765712975
Fixes: bug 1225126
cinder/backup/drivers/ceph.py
cinder/tests/backup/fake_rados.py
cinder/tests/test_backup_ceph.py
cinder/volume/drivers/rbd.py
etc/cinder/cinder.conf.sample