OSDN Git Service

nbd: Add writethrough to block-export-add
authorKevin Wolf <kwolf@redhat.com>
Thu, 24 Sep 2020 15:26:55 +0000 (17:26 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Oct 2020 13:46:40 +0000 (15:46 +0200)
commitfefee85da055e100ea86d15274106f78502c2819
tree20dba3571907c5afbdcaca686646b7bad6dca476
parent1c8222b014484145d66740d0597ae86b4a989b73
nbd: Add writethrough to block-export-add

qemu-nbd allows use of writethrough cache modes, which mean that write
requests made through NBD will cause a flush before they complete.
Expose the same functionality in block-export-add.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200924152717.287415-10-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev-nbd.c
qapi/block-export.json