diff options
| author | Stefan Hajnoczi <stefanha@redhat.com> | 2020-09-29 13:55:15 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@redhat.com> | 2020-10-23 13:42:16 +0100 |
| commit | cbc20bfb8fc293333abbef6aacf052f5f8d72f98 (patch) | |
| tree | 45821c5f9e4fcf2ae34979ee9a22aca44f67f614 /stubs/blk-exp-close-all.c | |
| parent | 4fb9071f65aa871bb46d665899ee328a94d9f781 (diff) | |
| download | focaccia-qemu-cbc20bfb8fc293333abbef6aacf052f5f8d72f98.tar.gz focaccia-qemu-cbc20bfb8fc293333abbef6aacf052f5f8d72f98.zip | |
block: move block exports to libblockdev
Block exports are used by softmmu, qemu-storage-daemon, and qemu-nbd. They are not used by other programs and are not otherwise needed in libblock. Undo the recent move of blockdev-nbd.c from blockdev_ss into block_ss. Since bdrv_close_all() (libblock) calls blk_exp_close_all() (libblockdev) a stub function is required.. Make qemu-nbd.c use signal handling utility functions instead of duplicating the code. This helps because os-posix.c is in libblockdev and it depends on a qemu_system_killed() symbol that qemu-nbd.c lacks. Once we use the signal handling utility functions we also end up providing the necessary symbol. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 20200929125516.186715-4-stefanha@redhat.com [Fixed s/ndb/nbd/ typo in commit description as suggested by Eric Blake --Stefan] Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'stubs/blk-exp-close-all.c')
| -rw-r--r-- | stubs/blk-exp-close-all.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/stubs/blk-exp-close-all.c b/stubs/blk-exp-close-all.c new file mode 100644 index 0000000000..1c71316763 --- /dev/null +++ b/stubs/blk-exp-close-all.c @@ -0,0 +1,7 @@ +#include "qemu/osdep.h" +#include "block/export.h" + +/* Only used in programs that support block exports (libblockdev.fa) */ +void blk_exp_close_all(void) +{ +} |