Add bdev_sizes RPC call
authorApollon Oikonomopoulos <apollon@noc.grnet.gr>
Fri, 4 Mar 2011 14:28:58 +0000 (16:28 +0200)
committerIustin Pop <iustin@google.com>
Tue, 8 Mar 2011 12:00:38 +0000 (13:00 +0100)
commit2be7273ccdad115169ab0f8765f3fe66d0aeff47
tree2d0d47b0e4e32f97e655e83b3975a5c841ffd4c0
parent2932dc444d14375d00f3096a827b28679c2e4173
Add bdev_sizes RPC call

The bdev_sizes multi-node RPC call returns the sizes of the requested
block devices on the desired nodes. Its intended use is to verify the
existence of a block device on a given node for shared block storage
support.

Block device paths are expected to lie under constants.BLOCKDEV_DIR
("/dev/disk" by default), where persistent symlinks for block devices
are assumed to exist.

Signed-off-by: Apollon Oikonomopoulos <apollon@noc.grnet.gr>
[iustin@google.com: small changes in backend.py]
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/backend.py
lib/rpc.py
lib/server/noded.py