diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-10-07 14:35:58 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2011-12-22 11:53:58 +0100 |
commit | 3777b09fd75ba746cf65d0ba30d73a5dd7a02d65 (patch) | |
tree | 2fa84bced9dbc18af94dc340255f0fe9e1bf1858 /qemu-nbd.c | |
parent | 94607e7a775ae7b57219e2078b00ed2930ab98de (diff) |
qemu-nbd: remove data_size argument to nbd_trip
The size of the buffer is in practice part of the protocol.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qemu-nbd.c')
-rw-r--r-- | qemu-nbd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/qemu-nbd.c b/qemu-nbd.c index f9ee9c58d1..d662268c81 100644 --- a/qemu-nbd.c +++ b/qemu-nbd.c @@ -35,8 +35,6 @@ #define SOCKET_PATH "/var/lock/qemu-nbd-%s" -#define NBD_BUFFER_SIZE (1024*1024) - static int sigterm_wfd; static int verbose; static char *device; @@ -541,7 +539,7 @@ int main(int argc, char **argv) for (i = 1; i < nb_fds && ret; i++) { if (FD_ISSET(sharing_fds[i], &fds)) { if (nbd_trip(bs, sharing_fds[i], fd_size, dev_offset, - nbdflags, data, NBD_BUFFER_SIZE) != 0) { + nbdflags, data) != 0) { close(sharing_fds[i]); nb_fds--; sharing_fds[i] = sharing_fds[nb_fds]; |