search for: tap_ctl_find

Displaying 4 results from an estimated 4 matches for "tap_ctl_find".

2012 Nov 07
4
[PATCH 1/2] 4.1.2 blktap2 cleanup fixes.
...igned-off-by: Greg Wettstein <greg@enjellic.com> diff -r 700d0f03d50a tools/blktap2/control/tap-ctl-list.c --- a/tools/blktap2/control/tap-ctl-list.c Mon Oct 29 09:04:48 2012 +0100 +++ b/tools/blktap2/control/tap-ctl-list.c Tue Nov 06 19:52:48 2012 -0600 @@ -506,17 +506,15 @@ out: } int -tap_ctl_find_minor(const char *type, const char *path) +tap_ctl_find(const char *type, const char *path, tap_list_t *tap) { tap_list_t **list, **_entry; - int minor, err; + int ret = -ENOENT, err; err = tap_ctl_list(&list); if (err) return err; - minor = -1; - for (_entry = list; *_entry !=...
2011 Sep 21
1
[PATCH] libxl: attempt to cleanup tapdisk processes on disk backend destroy
...mpbell <ian.campbell@citrix.com> diff -r 206afa070919 -r b43fd821d1ae tools/blktap2/control/tap-ctl-list.c --- a/tools/blktap2/control/tap-ctl-list.c Wed Sep 21 13:59:24 2011 +0100 +++ b/tools/blktap2/control/tap-ctl-list.c Wed Sep 21 13:59:24 2011 +0100 @@ -506,17 +506,15 @@ out: } int -tap_ctl_find_minor(const char *type, const char *path) +tap_ctl_find(const char *type, const char *path, tap_list_t *tap) { tap_list_t **list, **_entry; - int minor, err; + int ret = -ENOENT, err; err = tap_ctl_list(&list); if (err) return err; - minor = -1; - for (_entry = list; *_entry !=...
2012 Nov 07
4
[PATCH 2/2] 4.1.2 blktap2 cleanup fixes.
...apdisk(libxl char *path, *params, *type, *disk; int err; tap_list_t tap; + libxl_ctx *ctx = libxl__gc_owner(gc); path = libxl__sprintf(gc, "%s/tapdisk-params", be_path); if (!path) return; @@ -75,5 +76,11 @@ void libxl__device_destroy_tapdisk(libxl err = tap_ctl_find(type, disk, &tap); if (err < 0) return; + /* + * Remove the instance of the backend device to avoid a deadlock with the + * removal of the tap device. + */ + xs_rm(ctx->xsh, XBT_NULL, be_path); + tap_ctl_destroy(tap.id, tap.minor); } diff -r b184698e0893 too...
2013 Mar 21
1
xen-4.2, libxl and libvirt
.../xen-4.2/lib >&5 /usr/bin/ld: warning: libblktapctl.so, needed by /usr/lib/xen-4.2/lib/libxenlight.so, not found (try using -rpath or -rpath-link) /usr/lib/xen-4.2/lib/libxenlight.so: undefined reference to `tap_ctl_destroy' /usr/lib/xen-4.2/lib/libxenlight.so: undefined reference to `tap_ctl_find' /usr/lib/xen-4.2/lib/libxenlight.so: undefined reference to `tap_ctl_check' /usr/lib/xen-4.2/lib/libxenlight.so: undefined reference to `tap_ctl_create' collect2: error: ld returned 1 exit status -- now it's unable to find symbols from libblktapctl.so which is also in /usr/lib/xe...