Revision 9c007da8

b/lib/rpc.py
989 989
                                [(d.ToDict(), uid) for d, uid in devlist])
990 990

  
991 991
  @_RpcTimeout(_TMO_NORMAL)
992
  def call_blockdev_pause_resume_sync(self, node, disks, pause):
993
    """Request a pause/resume of given block device.
994

  
995
    This is a single-node call.
996

  
997
    """
998
    return self._SingleNodeCall(node, "blockdev_pause_resume_sync",
999
                                [[bdev.ToDict() for bdev in disks], pause])
1000

  
1001
  @_RpcTimeout(_TMO_NORMAL)
992 1002
  def call_blockdev_assemble(self, node, disk, owner, on_primary):
993 1003
    """Request assembling of a given block device.
994 1004

  
b/lib/server/noded.py
184 184
    return backend.BlockdevCreate(bdev, size, owner, on_primary, info)
185 185

  
186 186
  @staticmethod
187
  def perspective_blockdev_pause_resume_sync(params):
188
    """Pause/resume sync of a block device.
189

  
190
    """
191
    disks_s, pause = params
192
    disks = [objects.Disk.FromDict(bdev_s) for bdev_s in disks_s]
193
    return backend.BlockdevPauseResumeSync(disks, pause)
194

  
195
  @staticmethod
187 196
  def perspective_blockdev_wipe(params):
188 197
    """Wipe a block device.
189 198

  

Also available in: Unified diff