Skip to content

Commit

Permalink
Merge "LVM / Block Device Drivers: Fix duplicated flags"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Aug 1, 2013
2 parents 19e9a06 + 25cae8b commit ba48af1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 3 additions & 0 deletions cinder/volume/drivers/block_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
'none, zero, shred)'),
]

CONF = cfg.CONF
CONF.register_opts(volume_opts)


class BlockDeviceDriver(driver.ISCSIDriver):
VERSION = '1.0'
Expand Down
9 changes: 2 additions & 7 deletions cinder/volume/drivers/lvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@
cfg.StrOpt('volume_group',
default='cinder-volumes',
help='Name for the VG that will contain exported volumes'),
cfg.StrOpt('volume_clear',
default='zero',
help='Method used to wipe old volumes (valid options are: '
'none, zero, shred)'),
cfg.IntOpt('volume_clear_size',
default=0,
help='Size in MiB to wipe at start of old volumes. 0 => all'),
cfg.StrOpt('pool_size',
default=None,
help='Size of thin provisioning pool '
Expand All @@ -61,6 +54,8 @@

CONF = cfg.CONF
CONF.register_opts(volume_opts)
CONF.import_opt('volume_clear', 'cinder.volume.drivers.block_device')
CONF.import_opt('volume_clear_size', 'cinder.volume.drivers.block_device')


class LVMVolumeDriver(driver.VolumeDriver):
Expand Down

0 comments on commit ba48af1

Please sign in to comment.