]> git.proxmox.com Git - qemu.git/commit
qemu-nbd: move client handling to nbd.c
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Sep 2011 12:33:23 +0000 (14:33 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 Dec 2011 10:53:59 +0000 (11:53 +0100)
commit1743b515860ef645b285908ee367c5e343e0020c
treee3e4b075df3892869bce293affd2d6dbb5dca40b
parenta61c67828dea7c64edaf226cadb45b4ffcc1d411
qemu-nbd: move client handling to nbd.c

This patch sets up the fd handler in nbd.c instead of qemu-nbd.c.  It
introduces NBDClient, which wraps the arguments to nbd_trip in a single
structure, so that we can add a notifier to it.  This way, qemu-nbd can
know about disconnections.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
nbd.c
nbd.h
qemu-nbd.c