Revision 4c8ba8b3
b/daemons/ganeti-noded | ||
---|---|---|
211 | 211 |
cfbd = objects.Disk.FromDict(params[0]) |
212 | 212 |
return backend.SnapshotBlockDevice(cfbd) |
213 | 213 |
|
214 |
@staticmethod |
|
215 |
def perspective_blockdev_grow(params): |
|
216 |
"""Grow a stack of devices. |
|
217 |
|
|
218 |
""" |
|
219 |
cfbd = objects.Disk.FromDict(params[0]) |
|
220 |
amount = params[1] |
|
221 |
return backend.GrowBlockDevice(cfbd, amount) |
|
222 |
|
|
214 | 223 |
# export/import -------------------------- |
215 | 224 |
|
216 | 225 |
@staticmethod |
b/lib/rpc.py | ||
---|---|---|
607 | 607 |
return result |
608 | 608 |
|
609 | 609 |
|
610 |
def call_blockdev_grow(node, cf_bdev, amount): |
|
611 |
"""Request a snapshot of the given block device. |
|
612 |
|
|
613 |
This is a single-node call. |
|
614 |
|
|
615 |
""" |
|
616 |
c = Client("blockdev_grow", [cf_bdev.ToDict(), amount]) |
|
617 |
c.connect(node) |
|
618 |
c.run() |
|
619 |
return c.getresult().get(node, False) |
|
620 |
|
|
621 |
|
|
610 | 622 |
def call_blockdev_snapshot(node, cf_bdev): |
611 | 623 |
"""Request a snapshot of the given block device. |
612 | 624 |
|
Also available in: Unified diff