On 02/08/2018 11:18 AM, Stefan Hajnoczi wrote:
From: Kevin Wolf <kw...@redhat.com>

This patch adds test cases for the scenario where blk_aio_flush() is
called on a BlockBackend with no root.  Calling drain afterwards should
complete the requests with -ENOMEDIUM.

Signed-off-by: Kevin Wolf <kw...@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>
  tests/Makefile.include     |  2 ++
  tests/test-block-backend.c | 82 ++++++++++++++++++++++++++++++++++++++++++++++
  2 files changed, 84 insertions(+)
  create mode 100644 tests/test-block-backend.c

+++ b/tests/test-block-backend.c
@@ -0,0 +1,82 @@
+ * BlockBackend tests
+ *
+ * Copyright (c) 2017 Kevin Wolf <kw...@redhat.com>

Want to include 2018? Using a redhat.com address but a personal copyright? (Then again, Red Hat has some pretty cool policies on what it permits for code written on an employee's own time).

As long as Kevin is happy with the final copyright line that goes into the commit:

Reviewed-by: Eric Blake <ebl...@redhat.com>

Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Reply via email to