search for: noextents_can_extents

Displaying 7 results from an estimated 7 matches for "noextents_can_extents".

2020 Feb 10
2
[nbdkit PATCH 03/10] filters: Wire up filter support for NBD_INFO_INIT_STATE
...ers/noextents/noextents.c @@ -1,5 +1,5 @@ /* nbdkit - * Copyright (C) 2019 Red Hat Inc. + * Copyright (C) 2019-2020 Red Hat Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -41,10 +41,26 @@ noextents_can_extents (struct nbdkit_next_ops *next_ops, void *nxdata, return 0; } +static int +noextents_init_sparse (struct nbdkit_next_ops *next_ops, void *nxdata, + void *handle) +{ + return 0; +} + +static int +noextents_init_zero (struct nbdkit_next_ops *next_ops, void *nxdata, +...
2020 Feb 11
0
Re: [nbdkit PATCH 03/10] filters: Wire up filter support for NBD_INFO_INIT_STATE
...1,5 @@ > /* nbdkit > - * Copyright (C) 2019 Red Hat Inc. > + * Copyright (C) 2019-2020 Red Hat Inc. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions are > @@ -41,10 +41,26 @@ noextents_can_extents (struct nbdkit_next_ops *next_ops, void *nxdata, > return 0; > } > > +static int > +noextents_init_sparse (struct nbdkit_next_ops *next_ops, void *nxdata, > + void *handle) > +{ > + return 0; > +} > + > +static int > +noextents_init_ze...
2019 Aug 19
2
[nbdkit PATCH] noextents: Add hook to cripple SR advertisement
...e); +} + +#define noextents_config_help \ + "structured=<BOOL> Set to false to inhibit structured replies (default true).\n" + +static int +noextents_can_sr (struct nbdkit_next_ops *next_ops, void *nxdata, + void *handle) +{ + return structured; +} + static int noextents_can_extents (struct nbdkit_next_ops *next_ops, void *nxdata, void *handle) @@ -45,6 +70,9 @@ static struct nbdkit_filter filter = { .name = "noextents", .longname = "nbdkit noextents filter", .version = PACKAGE_VERSION, + .co...
2019 Aug 30
1
[nbdkit PATCH v2] filters: Stronger version match requirements
...ocache_config, .config_help = nocache_config_help, .can_cache = nocache_can_cache, diff --git a/filters/noextents/noextents.c b/filters/noextents/noextents.c index e39723cd..e6ac33b2 100644 --- a/filters/noextents/noextents.c +++ b/filters/noextents/noextents.c @@ -44,7 +44,6 @@ noextents_can_extents (struct nbdkit_next_ops *next_ops, void *nxdata, static struct nbdkit_filter filter = { .name = "noextents", .longname = "nbdkit noextents filter", - .version = PACKAGE_VERSION, .can_extents = noextents_can_extents, }; diff --gi...
2019 May 17
0
[nbdkit PATCH 3/3] filters: Use only .thread_model, not THREAD_MODEL
...E, diff --git a/filters/noextents/noextents.c b/filters/noextents/noextents.c index 59f4c37..e39723c 100644 --- a/filters/noextents/noextents.c +++ b/filters/noextents/noextents.c @@ -34,8 +34,6 @@ #include <nbdkit-filter.h> -#define THREAD_MODEL NBDKIT_THREAD_MODEL_PARALLEL - static int noextents_can_extents (struct nbdkit_next_ops *next_ops, void *nxdata, void *handle) diff --git a/filters/noparallel/noparallel.c b/filters/noparallel/noparallel.c index 7034b01..057485f 100644 --- a/filters/noparallel/noparallel.c +++ b/filters/noparallel/noparallel.c @@ -41,8 +41,6 @@ #includ...
2019 May 17
4
[nbdkit PATCH 0/3] Add noparallel filter
Being able to programmatically force nbdkit to be less parallel can be useful during testing. I was less sure about patch 3, but if you like it, I'm inclined to instead squash it into patch 1. This patch is written to apply after my NBD_CMD_CACHE work (since I touched the nocache filter); but can be rearranged if we think this series should go in first while that one undergoes any adjustments
2020 Feb 10
17
Cross-project NBD extension proposal: NBD_INFO_INIT_STATE
I will be following up to this email with four separate threads each addressed to the appropriate single list, with proposed changes to: - the NBD protocol - qemu: both server and client - libnbd: client - nbdkit: server The feature in question adds a new optional NBD_INFO_ packet to the NBD_OPT_GO portion of handshake, adding up to 16 bits of information that the server can advertise to the