Uniformize some function names in backend.py
authorIustin Pop <iustin@google.com>
Mon, 9 Feb 2009 14:03:57 +0000 (14:03 +0000)
committerIustin Pop <iustin@google.com>
Mon, 9 Feb 2009 14:03:57 +0000 (14:03 +0000)
commit821d1bd148749723b325e8aa98c49ebe839f1fb3
treef33b70cd70dbfacef62e08a20f9a4f558395977f
parent82463074c0c011a83cf2239affbdb44cb2940801
Uniformize some function names in backend.py

Currently, the names of the functions in backend.py that are actually
RPC procedures and are called from ganeti-noded are not corresponding to
the RPC names. This makes it hard to actually see which functions are
exported and which functions are internal to backend.

This patch renames all blockdevice-related functions in backend.py match
the name of the RPC call (without the ‘call’ or ‘perspective’ prefix).
This should make it easier to grep for a given function called in
cmdlib, without having to open and check in ganet-inoded what backend
function it corresponds to.

The patch also does two minor extra cleanups (rename a variable and
change a logging level).

Reviewed-by: ultrotter
daemons/ganeti-noded
lib/backend.py
lib/cmdlib.py