search for: 1d1b234

Displaying 4 results from an estimated 4 matches for "1d1b234".

Did you mean: 11234
2019 Jan 04
0
[PATCH nbdkit] common/include: Add generic MIN and MAX macros.
...;nbdkit-filter.h> +#include "minmax.h" + #define THREAD_MODEL NBDKIT_THREAD_MODEL_PARALLEL -#define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX_WRITE (64 * 1024 * 1024) static char buffer[MAX_WRITE]; diff --git a/plugins/pattern/pattern.c b/plugins/pattern/pattern.c index 1d1b234..32db381 100644 --- a/plugins/pattern/pattern.c +++ b/plugins/pattern/pattern.c @@ -45,6 +45,7 @@ #include <nbdkit-plugin.h> #include "byte-swapping.h" +#include "minmax.h" /* The size of disk in bytes (initialized by size=<SIZE> parameter). */ static int64_t...
2019 Jan 04
0
[PATCH nbdkit v5 2/3] common/include: Add generic MIN and MAX macros.
...;nbdkit-filter.h> +#include "minmax.h" + #define THREAD_MODEL NBDKIT_THREAD_MODEL_PARALLEL -#define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX_WRITE (64 * 1024 * 1024) static char buffer[MAX_WRITE]; diff --git a/plugins/pattern/pattern.c b/plugins/pattern/pattern.c index 1d1b234..32db381 100644 --- a/plugins/pattern/pattern.c +++ b/plugins/pattern/pattern.c @@ -45,6 +45,7 @@ #include <nbdkit-plugin.h> #include "byte-swapping.h" +#include "minmax.h" /* The size of disk in bytes (initialized by size=<SIZE> parameter). */ static int64_t...
2019 Jan 01
0
[PATCH nbdkit] plugins, filters: Define and use NBDKIT_HANDLE_NOT_NEEDED.
...only) { - /* We don't need a handle. This is a non-NULL pointer we can return. */ - static int h; - - return &h; + return NBDKIT_HANDLE_NOT_NEEDED; } #define THREAD_MODEL NBDKIT_THREAD_MODEL_PARALLEL diff --git a/plugins/pattern/pattern.c b/plugins/pattern/pattern.c index 46b5abd..1d1b234 100644 --- a/plugins/pattern/pattern.c +++ b/plugins/pattern/pattern.c @@ -73,14 +73,11 @@ pattern_config (const char *key, const char *value) #define THREAD_MODEL NBDKIT_THREAD_MODEL_PARALLEL -/* No meaning, just used as the address for the handle. */ -static int ph; - /* Create the per-conn...
2019 Jan 04
5
[PATCH nbdkit v5 3/3] cache: Implement cache-max-size and cache space reclaim.
v4: https://www.redhat.com/archives/libguestfs/2019-January/msg00032.html v5: - Now we set the block size at run time. I'd like to say that I was able to test this change, but unfortunately I couldn't find any easy way to create a filesystem on x86-64 with a block size > 4K. Ext4 doesn't support it at all, and XFS doesn't support block size > page size (and I