[pve-devel] [PATCH 2/6] qemu_drive_mirror : handle multiple jobs
Wolfgang Bumiller
w.bumiller at proxmox.com
Sun Dec 25 20:00:07 CET 2016
> On December 24, 2016 at 10:12 AM Alexandre DERUMIER <aderumier at odiso.com> wrote:
>
>
> Just has done small test with a socat tunnel
>
>
>
> socat UNIX-LISTEN:/tmp/foo.sock,reuseaddr,fork TCP:8.8.8.8:1234
>
> drive_mirror -n drive-scsi0 nbd:unix:/tmp/foo.sock:test
>
>
> then it's hanging like before, because no reponse. (we can make a small timeout to qmp response wait)
>
> then,we can kill socat, which is dropping the unix socket, and drive-mirror abort and freeing qmp commands.
A nasty trick, but I suppose it gets the job done for now (until someone
sends a patch upstream). Btw. before you go around killing socats: it has
a `connect-timeout` option (which is almost surprising).
More information about the pve-devel
mailing list