Statistics
| Branch: | Revision:

root / block / nbd-client.c @ d0277315

History | View | Annotate | Download (11 kB)

# Date Author Comment
2302c1ca 12/16/2013 11:12 am Marc-André Lureau

Split nbd block client code

Signed-off-by: Marc-André Lureau <>
Acked-by: Paolo Bonzini <>
Signed-off-by: Gerd Hoffmann <>

e53a18e4 12/16/2013 11:12 am Marc-André Lureau

nbd: don't change socket block during negotiate

The caller might handle non-blocking using coroutine. Leave the choice
to the caller to use a blocking or non-blocking negotiate.

Signed-off-by: Marc-André Lureau <>
Acked-by: Paolo Bonzini <>...

e2bc625f 12/16/2013 11:12 am Marc-André Lureau

nbd: pass export name as init argument

There is no need to keep the export name around, and it seems a better
fit as an argument in the init() call.

Signed-off-by: Marc-André Lureau <>
Acked-by: Paolo Bonzini <>...

5ad283eb 12/16/2013 11:12 am Marc-André Lureau

nbd: make nbd_client_session_close() idempotent

Signed-off-by: Marc-André Lureau <>
Acked-by: Paolo Bonzini <>
Signed-off-by: Gerd Hoffmann <>

69152c09 12/16/2013 11:12 am Marc-André Lureau

nbd: finish any pending coroutine

Make sure all pending coroutines are finished when closing the session.

Signed-off-by: Marc-André Lureau <>
Acked-by: Paolo Bonzini <>
Signed-off-by: Gerd Hoffmann <>

b1b27b64 12/16/2013 11:12 am Marc-André Lureau

nbd: avoid uninitialized warnings

15815 Thread 1:
15815 Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
15815 at 0x65AD5CB: send (send.c:31)
15815 by 0x37F84B: nbd_wr_sync (nbd.c:145)
15815 by 0x37F94B: write_sync (nbd.c:186)...