]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: convert unknown procedures to VIR_ERR_NO_SUPPORT
authorEric Blake <eblake@redhat.com>
Wed, 14 Sep 2011 18:41:17 +0000 (12:41 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 16 Sep 2011 14:20:32 +0000 (08:20 -0600)
commit4a075f7e7fcc9f56f880d781d4a08f869a50c4e8
tree1272433be806874101d8d79dbd72c5d4d05a149f
parent3f2cb3ab595b3c185f6f814a5e2f46f4866b45a9
rpc: convert unknown procedures to VIR_ERR_NO_SUPPORT

Libvirt special-cases a specific VIR_ERR_RPC from the remote driver
back into VIR_ERR_NO_SUPPORT on the client, so that clients can
handle missing rpc functions the same whether the hypervisor driver
is local or remote.  However, commit c1b22644 introduced a regression:
VIR_FROM_THIS changed from VIR_FROM_REMOTE to VIR_FROM_RPC, so the
special casing no longer works if the server uses the newer error
domain.

* src/rpc/virnetclientprogram.c
(virNetClientProgramDispatchError): Also cater to 0.9.3 and newer.
src/rpc/virnetclientprogram.c