Displaying 3 results from an estimated 3 matches for "nbdkit_context".
2023 Jan 27
2
[nbdkit PATCH 1/2] retry: Add in retry support during .open
...opyright (C) 2019-2023 Red Hat Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -113,45 +113,6 @@ struct retry_handle {
bool open;
};
-static void *
-retry_open (nbdkit_next_open *next, nbdkit_context *nxdata,
- int readonly, const char *exportname, int is_tls)
-{
- struct retry_handle *h;
-
- if (next (nxdata, readonly, exportname) == -1)
- return NULL;
-
- h = malloc (sizeof *h);
- if (h == NULL) {
- nbdkit_error ("malloc: %m");
- return NULL;
- }
-
- h->...
2023 Jan 28
1
[nbdkit PATCH 1/2] retry: Add in retry support during .open
...> * Redistribution and use in source and binary forms, with or without
> * modification, are permitted provided that the following conditions are
> @@ -113,45 +113,6 @@ struct retry_handle {
> bool open;
> };
>
> -static void *
> -retry_open (nbdkit_next_open *next, nbdkit_context *nxdata,
> - int readonly, const char *exportname, int is_tls)
> -{
> - struct retry_handle *h;
> -
> - if (next (nxdata, readonly, exportname) == -1)
> - return NULL;
> -
> - h = malloc (sizeof *h);
> - if (h == NULL) {
> - nbdkit_error ("mal...
2023 Jan 27
2
[nbdkit PATCH 0/2] retry: add support for retrying .open
In https://bugzilla.redhat.com/show_bug.cgi?id=1841820, it was pointed
out that the retry filter not retrying .open means that an ssh
connection (such as in a vmx+ssh v2v conversion) fails when the ssh
connection itself cannot be retried. A year ago, this was an inherent
limitation of our retry implementation; but in the meantime, my work
to allow filters to open independent backends has made it