]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-nbd.c
nbd-server: Use a separate BlockBackend
authorKevin Wolf <kwolf@redhat.com>
Wed, 6 Jul 2016 09:22:39 +0000 (11:22 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Sep 2016 17:06:47 +0000 (19:06 +0200)
commitcd7fca952ce8456955f7f4e11df9ced14204c2f1
tree2d58a11ca8c6f967356c111e5750f9f8c924dd5a
parent0524e93a3fd7bff5bb4a584c372f2632ab7c0e0f
nbd-server: Use a separate BlockBackend

The builtin NBD server uses its own BlockBackend now instead of reusing
the monitor/guest device one.

This means that it has its own writethrough setting now. The builtin
NBD server always uses writeback caching now regardless of whether the
guest device has WCE enabled. qemu-nbd respects the cache mode given on
the command line.

We still need to keep a reference to the monitor BB because we put an
eject notifier on it, but we don't use it for any I/O.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block.c
blockdev-nbd.c
include/block/nbd.h
nbd/server.c
qemu-nbd.c