Revision 2f726488 nbd.h
b/nbd.h | ||
---|---|---|
33 | 33 |
int nbd_negotiate(BlockDriverState *bs, int csock, off_t size); |
34 | 34 |
int nbd_receive_negotiate(int csock, off_t *size, size_t *blocksize); |
35 | 35 |
int nbd_init(int fd, int csock, off_t size, size_t blocksize); |
36 |
int nbd_trip(BlockDriverState *bs, int csock, off_t size, uint64_t dev_offset, off_t *offset, bool readonly); |
|
36 |
int nbd_trip(BlockDriverState *bs, int csock, off_t size, uint64_t dev_offset, |
|
37 |
off_t *offset, bool readonly, uint8_t *data, int data_size); |
|
37 | 38 |
int nbd_client(int fd, int csock); |
38 | 39 |
int nbd_disconnect(int fd); |
39 | 40 |
|
Also available in: Unified diff