Add object-map to default RBD volume features
This allows for much quicker image deletes especially for empty images.
This commit is contained in:
parent
0ccfc41398
commit
00e9cca6f0
|
@ -486,7 +486,7 @@ def add_volume(zk_conn, pool, name, size):
|
||||||
size = '{}B'.format(size)
|
size = '{}B'.format(size)
|
||||||
|
|
||||||
# 2. Create the volume
|
# 2. Create the volume
|
||||||
retcode, stdout, stderr = common.run_os_command('rbd create --size {} --image-feature layering,exclusive-lock {}/{}'.format(size, pool, name))
|
retcode, stdout, stderr = common.run_os_command('rbd create --size {} --image-feature layering,exclusive-lock,object-map {}/{}'.format(size, pool, name))
|
||||||
if retcode:
|
if retcode:
|
||||||
return False, 'ERROR: Failed to create RBD volume "{}": {}'.format(name, stderr)
|
return False, 'ERROR: Failed to create RBD volume "{}": {}'.format(name, stderr)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue