qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] e31d80: nbd/server: Advertise all contexts in


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] e31d80: nbd/server: Advertise all contexts in response to ...
Date: Mon, 03 Dec 2018 11:48:01 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: e31d802479df9daff1994a7ed1e36bbc5bb19d03
      
https://github.com/qemu/qemu/commit/e31d802479df9daff1994a7ed1e36bbc5bb19d03
  Author: Eric Blake <address@hidden>
  Date:   2018-11-30 (Fri, 30 Nov 2018)

  Changed paths:
    M nbd/server.c

  Log Message:
  -----------
  nbd/server: Advertise all contexts in response to bare LIST

The NBD spec, and even our code comment, says that if the client
asks for NBD_OPT_LIST_META_CONTEXT with 0 queries, then we should
reply with (a possibly-compressed representation of) ALL contexts
that we are willing to let them try.  But commit 3d068aff forgot
to advertise qemu:dirty-bitmap:FOO.

Signed-off-by: Eric Blake <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Vladimir Sementsov-Ogievskiy <address@hidden>


  Commit: 47829c40794160debdb33b4a042d182e776876d4
      
https://github.com/qemu/qemu/commit/47829c40794160debdb33b4a042d182e776876d4
  Author: Eric Blake <address@hidden>
  Date:   2018-11-30 (Fri, 30 Nov 2018)

  Changed paths:
    M block/nbd-client.c

  Log Message:
  -----------
  nbd/client: Make x-dirty-bitmap more reliable

The implementation of x-dirty-bitmap in qemu 3.0 (commit 216ee365)
silently falls back to treating the server as not supporting
NBD_CMD_BLOCK_STATUS if a requested meta_context name was not
negotiated, which in turn means treating the _entire_ image as
data. Since our hack relied on using 'qemu-img map' to view
which portions of the image were dirty by seeing what the
redirected bdrv_block_status() treats as holes, this means
that our fallback treats the entire image as clean.  Better
would have been to treat the entire image as dirty, or to fail
to connect because the user's request for a specific context
could not be honored. This patch goes with the latter.

Signed-off-by: Eric Blake <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Vladimir Sementsov-Ogievskiy <address@hidden>


  Commit: c688e6ca7b41a105241054853d250df64addbf8f
      
https://github.com/qemu/qemu/commit/c688e6ca7b41a105241054853d250df64addbf8f
  Author: Eric Blake <address@hidden>
  Date:   2018-11-30 (Fri, 30 Nov 2018)

  Changed paths:
    M block/nbd-client.c

  Log Message:
  -----------
  nbd/client: Send NBD_CMD_DISC if open fails after connect

If nbd_client_init() fails after we are already connected,
then the server will spam logs with:

Disconnect client, due to: Unexpected end-of-file before all bytes were read

unless we gracefully disconnect before closing the connection.

Ways to trigger this:

$ 
opts=driver=nbd,export=foo,server.type=inet,server.host=localhost,server.port=10809
$  qemu-img map --output=json --image-opts $opts,read-only=off
$  qemu-img map --output=json --image-opts $opts,x-dirty-bitmap=nosuch:

Signed-off-by: Eric Blake <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Vladimir Sementsov-Ogievskiy <address@hidden>


  Commit: 9225cd127dd885112787d0dafd7d8aea71e223b4
      
https://github.com/qemu/qemu/commit/9225cd127dd885112787d0dafd7d8aea71e223b4
  Author: Peter Maydell <address@hidden>
  Date:   2018-12-03 (Mon, 03 Dec 2018)

  Changed paths:
    M block/nbd-client.c
    M nbd/server.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/ericb/tags/pull-nbd-2018-12-03' into 
staging

nbd patches for 2018-12-03

Improve x-dirty-bitmap handling for experimenting with pull mode
incremental backups.

- Eric Blake: 0/3 NBD dirty bitmap cleanups

# gpg: Signature made Mon 03 Dec 2018 15:56:23 GMT
# gpg:                using RSA key A7A16B4A2527436A
# gpg: Good signature from "Eric Blake <address@hidden>"
# gpg:                 aka "Eric Blake (Free Software Programmer) 
<address@hidden>"
# gpg:                 aka "[jpeg image of size 6874]"
# Primary key fingerprint: 71C2 CC22 B1C4 6029 27D2  F3AA A7A1 6B4A 2527 436A

* remotes/ericb/tags/pull-nbd-2018-12-03:
  nbd/client: Send NBD_CMD_DISC if open fails after connect
  nbd/client: Make x-dirty-bitmap more reliable
  nbd/server: Advertise all contexts in response to bare LIST

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/3af8c4be90e1...9225cd127dd8
      **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]