search for: tap_ctl_free_list

Displaying 2 results from an estimated 2 matches for "tap_ctl_free_list".

2012 Nov 07
4
[PATCH 1/2] 4.1.2 blktap2 cleanup fixes.
...tap_list_t *entry = *_entry; @@ -526,11 +524,13 @@ tap_ctl_find_minor(const char *type, con if (path && (!entry->path || strcmp(entry->path, path))) continue; - minor = entry->minor; + *tap = *entry; + tap->type = tap->path = NULL; + ret = 0; break; } tap_ctl_free_list(list); - return minor >= 0 ? minor : -ENOENT; + return ret; } diff -r 700d0f03d50a tools/blktap2/control/tap-ctl.h --- a/tools/blktap2/control/tap-ctl.h Mon Oct 29 09:04:48 2012 +0100 +++ b/tools/blktap2/control/tap-ctl.h Tue Nov 06 19:52:48 2012 -0600 @@ -76,7 +76,7 @@ int tap_ctl_get_driver...
2011 Sep 21
1
[PATCH] libxl: attempt to cleanup tapdisk processes on disk backend destroy
...tap_list_t *entry = *_entry; @@ -526,11 +524,13 @@ tap_ctl_find_minor(const char *type, con if (path && (!entry->path || strcmp(entry->path, path))) continue; - minor = entry->minor; + *tap = *entry; + tap->type = tap->path = NULL; + ret = 0; break; } tap_ctl_free_list(list); - return minor >= 0 ? minor : -ENOENT; + return ret; } diff -r 206afa070919 -r b43fd821d1ae tools/blktap2/control/tap-ctl.h --- a/tools/blktap2/control/tap-ctl.h Wed Sep 21 13:59:24 2011 +0100 +++ b/tools/blktap2/control/tap-ctl.h Wed Sep 21 13:59:24 2011 +0100 @@ -76,7 +76,7 @@ int ta...