]> git.proxmox.com Git - qemu.git/commit
nbd: ask and print error information from qemu-sockets
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Oct 2012 08:07:21 +0000 (10:07 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Oct 2012 11:54:56 +0000 (13:54 +0200)
commitf8430e7621b3319f6b94c735c811b2a2448cd6ea
tree231b961b60b0abf023050c4c8b7a6da11b84bdce
parent87d5f24f3f5edc4b69d071d5966cea0aec7b571d
nbd: ask and print error information from qemu-sockets

Before:

    $ qemu-system-x86_64 nbd:localhost:12345
    inet_connect_opts: connect(ipv4,yakj.usersys.redhat.com,127.0.0.1,12345): Connection refused
    qemu-system-x86_64: could not open disk image nbd:localhost:12345: Connection refused

After:

    $ x86_64-softmmu/qemu-system-x86_64 nbd:localhost:12345
    qemu-system-x86_64: Failed to connect to socket: Connection refused
    qemu-system-x86_64: could not open disk image nbd:localhost:12345: Connection refused

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
nbd.c