Files
virt-v2v/lib
Laszlo Ersek b4a8ccf00f lib/utils: add the "Utils.with_nbd_connect_unix" helper function
Connecting to an NBD server temporarily, for a "one-shot" operation, is
quite similar to "Std_utils.with_open_in" and "Std_utils.with_open_out",
as there are cleanup operations regardless of whether the "one-shot"
operation completes successfully or throws an exception.

Introduce the "Utils.with_nbd_connect_unix" function, which takes a Unix
domain socket pathname, a list of metadata contexts to request from the
NBD server, and calls a function with the live NBD server connection.

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2027598
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20211210113537.10907-2-lersek@redhat.com>
Acked-by: Richard W.M. Jones <rjones@redhat.com>
2021-12-10 14:27:31 +01:00
..
2021-09-07 11:24:03 +01:00
2021-09-07 11:24:03 +01:00
2021-09-07 11:24:03 +01:00
2021-09-07 11:24:03 +01:00
2021-09-07 11:24:03 +01:00
2021-09-07 11:24:03 +01:00
2021-09-07 11:24:03 +01:00
2021-09-07 11:24:03 +01:00
2021-12-07 08:34:58 +00:00
2021-09-07 11:24:03 +01:00