Browse Source

nbd: Miscellaneous typo fixes.

Signed-off-by: Hani Benhabiles <hani@linux.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Hani Benhabiles 11 năm trước cách đây
mục cha
commit
5672ee54d5
3 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 1 1
      nbd.c
  2. 1 1
      qemu-nbd.c
  3. 1 1
      qemu-nbd.texi

+ 1 - 1
nbd.c

@@ -306,7 +306,7 @@ static int nbd_send_negotiate(NBDClient *client)
         [ 8 ..  15]   magic        (NBD_CLIENT_MAGIC)
         [ 8 ..  15]   magic        (NBD_CLIENT_MAGIC)
         [16 ..  23]   size
         [16 ..  23]   size
         [24 ..  25]   server flags (0)
         [24 ..  25]   server flags (0)
-        [24 ..  27]   export flags
+        [26 ..  27]   export flags
         [28 .. 151]   reserved     (0)
         [28 .. 151]   reserved     (0)
 
 
        Negotiation header with options, part 1:
        Negotiation header with options, part 1:

+ 1 - 1
qemu-nbd.c

@@ -294,7 +294,7 @@ static void *nbd_client_thread(void *arg)
     fd = open(device, O_RDWR);
     fd = open(device, O_RDWR);
     if (fd < 0) {
     if (fd < 0) {
         /* Linux-only, we can use %m in printf.  */
         /* Linux-only, we can use %m in printf.  */
-        fprintf(stderr, "Failed to open %s: %m", device);
+        fprintf(stderr, "Failed to open %s: %m\n", device);
         goto out_socket;
         goto out_socket;
     }
     }
 
 

+ 1 - 1
qemu-nbd.texi

@@ -15,7 +15,7 @@ Export QEMU disk image using NBD protocol.
 @item @var{filename}
 @item @var{filename}
  is a disk image filename
  is a disk image filename
 @item -p, --port=@var{port}
 @item -p, --port=@var{port}
-  port to listen on (default @samp{1024})
+  port to listen on (default @samp{10809})
 @item -o, --offset=@var{offset}
 @item -o, --offset=@var{offset}
   offset into the image
   offset into the image
 @item -b, --bind=@var{iface}
 @item -b, --bind=@var{iface}