[libvirt] [PATCH] rbd: Set r variable so it can be returned should an error occur