Diff for /qemu/nbd.h between versions 1.1.1.6 and 1.1.1.7

version 1.1.1.6, 2018/04/24 19:16:55 version 1.1.1.7, 2018/04/24 19:34:03
Line 57  enum { Line 57  enum {
   
 #define NBD_DEFAULT_PORT        10809  #define NBD_DEFAULT_PORT        10809
   
 size_t nbd_wr_sync(int fd, void *buffer, size_t size, bool do_read);  #define NBD_BUFFER_SIZE (1024*1024)
   
   ssize_t nbd_wr_sync(int fd, void *buffer, size_t size, bool do_read);
 int tcp_socket_outgoing(const char *address, uint16_t port);  int tcp_socket_outgoing(const char *address, uint16_t port);
 int tcp_socket_incoming(const char *address, uint16_t port);  int tcp_socket_incoming(const char *address, uint16_t port);
 int tcp_socket_outgoing_spec(const char *address_and_port);  int tcp_socket_outgoing_spec(const char *address_and_port);
Line 65  int tcp_socket_incoming_spec(const char  Line 67  int tcp_socket_incoming_spec(const char 
 int unix_socket_outgoing(const char *path);  int unix_socket_outgoing(const char *path);
 int unix_socket_incoming(const char *path);  int unix_socket_incoming(const char *path);
   
 int nbd_negotiate(int csock, off_t size, uint32_t flags);  
 int nbd_receive_negotiate(int csock, const char *name, uint32_t *flags,  int nbd_receive_negotiate(int csock, const char *name, uint32_t *flags,
                           off_t *size, size_t *blocksize);                            off_t *size, size_t *blocksize);
 int nbd_init(int fd, int csock, uint32_t flags, off_t size, size_t blocksize);  int nbd_init(int fd, int csock, uint32_t flags, off_t size, size_t blocksize);
 int nbd_send_request(int csock, struct nbd_request *request);  ssize_t nbd_send_request(int csock, struct nbd_request *request);
 int nbd_receive_reply(int csock, struct nbd_reply *reply);  ssize_t nbd_receive_reply(int csock, struct nbd_reply *reply);
 int nbd_trip(BlockDriverState *bs, int csock, off_t size, uint64_t dev_offset,  
              off_t *offset, uint32_t nbdflags, uint8_t *data, int data_size);  
 int nbd_client(int fd);  int nbd_client(int fd);
 int nbd_disconnect(int fd);  int nbd_disconnect(int fd);
   
   typedef struct NBDExport NBDExport;
   typedef struct NBDClient NBDClient;
   
   NBDExport *nbd_export_new(BlockDriverState *bs, off_t dev_offset,
                             off_t size, uint32_t nbdflags);
   void nbd_export_close(NBDExport *exp);
   NBDClient *nbd_client_new(NBDExport *exp, int csock,
                             void (*close)(NBDClient *));
   
 #endif  #endif

Removed from v.1.1.1.6  
changed lines
  Added in v.1.1.1.7


unix.superglobalmegacorp.com