Revision 0a4eb864
b/nbd.c | ||
---|---|---|
393 | 393 |
return 0; |
394 | 394 |
} |
395 | 395 |
|
396 |
int nbd_client(int fd, int csock)
|
|
396 |
int nbd_client(int fd) |
|
397 | 397 |
{ |
398 | 398 |
int ret; |
399 | 399 |
int serrno; |
... | ... | |
427 | 427 |
return -1; |
428 | 428 |
} |
429 | 429 |
|
430 |
int nbd_client(int fd, int csock)
|
|
430 |
int nbd_client(int fd) |
|
431 | 431 |
{ |
432 | 432 |
errno = ENOTSUP; |
433 | 433 |
return -1; |
b/nbd.h | ||
---|---|---|
55 | 55 |
int nbd_receive_reply(int csock, struct nbd_reply *reply); |
56 | 56 |
int nbd_trip(BlockDriverState *bs, int csock, off_t size, uint64_t dev_offset, |
57 | 57 |
off_t *offset, bool readonly, uint8_t *data, int data_size); |
58 |
int nbd_client(int fd, int csock);
|
|
58 |
int nbd_client(int fd); |
|
59 | 59 |
int nbd_disconnect(int fd); |
60 | 60 |
|
61 | 61 |
#endif |
b/qemu-nbd.c | ||
---|---|---|
417 | 417 |
|
418 | 418 |
show_parts(device); |
419 | 419 |
|
420 |
nbd_client(fd, sock);
|
|
420 |
nbd_client(fd); |
|
421 | 421 |
close(fd); |
422 | 422 |
out: |
423 | 423 |
kill(pid, SIGTERM); |
Also available in: Unified diff