• K
    nbd-server: Use a separate BlockBackend · cd7fca95
    Kevin Wolf 提交于
    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: NKevin Wolf <kwolf@redhat.com>
    Reviewed-by: NEric Blake <eblake@redhat.com>
    Reviewed-by: NMax Reitz <mreitz@redhat.com>
    cd7fca95
qemu-nbd.c 29.3 KB