Commit e31c43f7 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Put synchronization speed into constant.

Reviewed-by: iustinp
parent a5d17f9f
......@@ -575,7 +575,7 @@ def CreateBlockDevice(disk, size, on_primary):
(disk, size))
if on_primary or disk.AssembleOnSecondary():
device.Assemble()
device.SetSyncSpeed(30*1024)
device.SetSyncSpeed(constants.SYNC_SPEED)
if on_primary or disk.OpenOnSecondary():
device.Open(force=True)
physical_id = device.unique_id
......@@ -630,7 +630,7 @@ def _RecursiveAssembleBD(disk, as_primary):
if as_primary or disk.AssembleOnSecondary():
r_dev = bdev.AttachOrAssemble(disk.dev_type, disk.physical_id, children)
r_dev.SetSyncSpeed(30*1024)
r_dev.SetSyncSpeed(constants.SYNC_SPEED)
result = r_dev
if as_primary or disk.OpenOnSecondary():
r_dev.Open()
......
......@@ -87,3 +87,4 @@ EXIT_NOTMASTER = 11
# others
DEFAULT_BRIDGE = "xen-br0"
SYNC_SPEED = 30 * 1024
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment