]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Enable setting blocksize on volumes.
authorJohn Griffith <john.griffith@solidfire.com>
Wed, 10 Jul 2013 21:34:26 +0000 (15:34 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Wed, 10 Jul 2013 22:32:09 +0000 (16:32 -0600)
commit67078ab9329b8f3d844b033b4d64cf2bdcf6bab7
tree2432e5395ca7caab85eb01d68f20279167ba9636
parent2f5e26a247665f890cdf26773b5e7070890594d8
Enable setting blocksize on volumes.

Some back-ends support blocksizes other than the default 512 (like 4096),
this change adds a provider_geometry column to the volumes table,
format is "physical_block_size logical_block_size".

This can then be used by libvirt to determine if it should pass in
non-default block_size info, and there's a method for future
geometry/disk info that might be needed.

Fixes bug: 1196248

Change-Id: I8d40bc56403154fbe955cd4ccf8f0c55fc9eb7c5
cinder/db/sqlalchemy/migrate_repo/versions/013_add_provider_geometry_column.py [new file with mode: 0644]
cinder/db/sqlalchemy/migrate_repo/versions/013_sqlite_downgrade.sql [new file with mode: 0644]
cinder/db/sqlalchemy/models.py
cinder/tests/test_migrations.py
cinder/tests/test_solidfire.py
cinder/volume/driver.py
cinder/volume/drivers/solidfire.py