diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-02 14:07:35 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-02 14:07:35 -0500 |
commit | 162cbbd1736de2bca43fdefa7e98c54a361ee60d (patch) | |
tree | b61fbd71c097e8f6447a785132fb12f973e73e24 /nbd.c | |
parent | 9d4563c415683e4d06c84a46e8d178a680fdcb7b (diff) | |
parent | 9b938c7262e403f5467110609cb20ef1ae6e9df2 (diff) | |
download | hqemu-162cbbd1736de2bca43fdefa7e98c54a361ee60d.zip hqemu-162cbbd1736de2bca43fdefa7e98c54a361ee60d.tar.gz |
Merge remote-tracking branch 'luiz/queue/qmp' into staging
# By Stefan Hajnoczi
# Via Luiz Capitulino
* luiz/queue/qmp:
chardev: clear O_NONBLOCK on SCM_RIGHTS file descriptors
qemu-socket: set passed fd non-blocking in socket_connect()
net: ensure "socket" backend uses non-blocking fds
oslib-posix: rename socket_set_nonblock() to qemu_set_nonblock()
Diffstat (limited to 'nbd.c')
-rw-r--r-- | nbd.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -386,7 +386,7 @@ static int nbd_send_negotiate(NBDClient *client) [28 .. 151] reserved (0) */ - socket_set_block(csock); + qemu_set_block(csock); rc = -EINVAL; TRACE("Beginning negotiation."); @@ -429,7 +429,7 @@ static int nbd_send_negotiate(NBDClient *client) TRACE("Negotiation succeeded."); rc = 0; fail: - socket_set_nonblock(csock); + qemu_set_nonblock(csock); return rc; } @@ -443,7 +443,7 @@ int nbd_receive_negotiate(int csock, const char *name, uint32_t *flags, TRACE("Receiving negotiation."); - socket_set_block(csock); + qemu_set_block(csock); rc = -EINVAL; if (read_sync(csock, buf, 8) != 8) { @@ -558,7 +558,7 @@ int nbd_receive_negotiate(int csock, const char *name, uint32_t *flags, rc = 0; fail: - socket_set_nonblock(csock); + qemu_set_nonblock(csock); return rc; } |