Displaying 7 results from an estimated 7 matches for "69cf4e9".
2019 Nov 22
2
Re: [PATCH nbdkit v2 02/10] python: Add various constants to the API.
...a tiny bit of memory and it's nice to
> have the complete set available for future use.
> ---
> plugins/python/python.c | 27 +++++++++++++++++++++++++++
> 1 file changed, 27 insertions(+)
>
> diff --git a/plugins/python/python.c b/plugins/python/python.c
> index d65ac45..69cf4e9 100644
> --- a/plugins/python/python.c
> +++ b/plugins/python/python.c
> @@ -231,6 +231,33 @@ create_nbdkit_module (void)
> nbdkit_error ("could not create the nbdkit API module");
> exit (EXIT_FAILURE);
> }
> +
> + /* Constants corresponding to vario...
2019 Nov 22
1
Re: [PATCH nbdkit v2 02/10] python: Add various constants to the API.
...plete set available for future use.
> > > ---
> > > plugins/python/python.c | 27 +++++++++++++++++++++++++++
> > > 1 file changed, 27 insertions(+)
> > >
> > > diff --git a/plugins/python/python.c b/plugins/python/python.c
> > > index d65ac45..69cf4e9 100644
> > > --- a/plugins/python/python.c
> > > +++ b/plugins/python/python.c
> > > @@ -231,6 +231,33 @@ create_nbdkit_module (void)
> > > nbdkit_error ("could not create the nbdkit API module");
> > > exit (EXIT_FAILURE);
> >...
2019 Nov 22
0
[PATCH nbdkit v2 02/10] python: Add various constants to the API.
...r
be useful, but they only consume a tiny bit of memory and it's nice to
have the complete set available for future use.
---
plugins/python/python.c | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/plugins/python/python.c b/plugins/python/python.c
index d65ac45..69cf4e9 100644
--- a/plugins/python/python.c
+++ b/plugins/python/python.c
@@ -231,6 +231,33 @@ create_nbdkit_module (void)
nbdkit_error ("could not create the nbdkit API module");
exit (EXIT_FAILURE);
}
+
+ /* Constants corresponding to various flags. */
+ PyModule_AddIntConstant...
2019 Nov 22
0
Re: [PATCH nbdkit v2 02/10] python: Add various constants to the API.
...nice to
> > have the complete set available for future use.
> > ---
> > plugins/python/python.c | 27 +++++++++++++++++++++++++++
> > 1 file changed, 27 insertions(+)
> >
> > diff --git a/plugins/python/python.c b/plugins/python/python.c
> > index d65ac45..69cf4e9 100644
> > --- a/plugins/python/python.c
> > +++ b/plugins/python/python.c
> > @@ -231,6 +231,33 @@ create_nbdkit_module (void)
> > nbdkit_error ("could not create the nbdkit API module");
> > exit (EXIT_FAILURE);
> > }
> > +
> >...
2019 Nov 21
10
[PATCH nbdkit 0/8] Implement nbdkit API v2 for Python plugins.
And fill out most of the missing bits of the API.
Rich.
2019 Nov 22
0
[PATCH nbdkit v2 03/10] python: Implement nbdkit API version 2.
...to automatically fall back to C<pwrite> (perhaps
+because there is nothing to optimize if
+S<C<flags & nbdkit.FLAG_MAY_TRIM>> is false), use
+S<C<nbdkit.set_error (errno.EOPNOTSUPP)>>.
=back
diff --git a/plugins/python/python.c b/plugins/python/python.c
index 69cf4e9..20e05e0 100644
--- a/plugins/python/python.c
+++ b/plugins/python/python.c
@@ -46,6 +46,8 @@
#define PY_SSIZE_T_CLEAN 1
#include <Python.h>
+#define NBDKIT_API_VERSION 2
+
#include <nbdkit-plugin.h>
#include "cleanup.h"
@@ -60,6 +62,7 @@
*/
static const char *scrip...
2019 Nov 22
18
[PATCH nbdkit v2 00/10] Implement nbdkit API v2 for Python plugins.
v1:
https://www.redhat.com/archives/libguestfs/2019-November/msg00153.html
v2:
- Fix implementation of can_cache.
- Add implementation of can_fua.
- Add a very thorough test suite which tests every command + flag
combination.