Allow the proxy connection to pass through flags from upstream.

This commit is contained in:
Patrick J Cherry
2018-02-02 10:30:40 +00:00
parent 1f0ef0aad6
commit 68a196e93d
5 changed files with 48 additions and 19 deletions

View File

@@ -293,7 +293,8 @@ int mirror_connect( struct mirror * mirror, uint64_t local_size )
if( FD_ISSET( mirror->client, &fds ) ){
uint64_t remote_size;
if ( socket_nbd_read_hello( mirror->client, &remote_size ) ) {
uint32_t remote_flags;
if ( socket_nbd_read_hello( mirror->client, &remote_size, &remote_flags ) ) {
if( remote_size == local_size ){
connected = 1;
mirror_set_state( mirror, MS_GO );