Revision b8d26c6e daemons/ganeti-noded
b/daemons/ganeti-noded | ||
---|---|---|
272 | 272 |
for status in backend.BlockdevGetmirrorstatus(disks)] |
273 | 273 |
|
274 | 274 |
@staticmethod |
275 |
def perspective_blockdev_getmirrorstatus_multi(params): |
|
276 |
"""Return the mirror status for a list of disks. |
|
277 |
|
|
278 |
""" |
|
279 |
(node_disks, ) = params |
|
280 |
|
|
281 |
node_name = netutils.Hostname.GetSysName() |
|
282 |
|
|
283 |
disks = [objects.Disk.FromDict(dsk_s) |
|
284 |
for dsk_s in node_disks.get(node_name, [])] |
|
285 |
|
|
286 |
return [status.ToDict() |
|
287 |
for status in backend.BlockdevGetmirrorstatus(disks)] |
|
288 |
|
|
289 |
@staticmethod |
|
275 | 290 |
def perspective_blockdev_find(params): |
276 | 291 |
"""Expose the FindBlockDevice functionality for a disk. |
277 | 292 |
|
Also available in: Unified diff