Displaying 5 results from an estimated 5 matches for "nbd_aio_zero_callback".
2019 Jul 17
3
[nbdkit PATCH 0/2] Another libnbd API bump
libnbd 0.1.7 was released today, which breaks compilation of
nbdkit-nbd-plugin. We could work around it by using #ifdef
LIBNBD_HAVE_XXX to learn about the renamed functions, but supporting
older versions is not all that important when we don't yet have API
stability. So patch 1 copes by just bumping the minimum version
instead, except that we have yet another pending libnbd patch with an
API
2019 Jul 17
0
[nbdkit PATCH 2/2] nbd: Another libnbd API bump
...nbdplug_notify, &s, f));
return nbdplug_reply (h, &s);
}
@@ -709,7 +709,7 @@ nbdplug_zero (void *handle, uint32_t count, uint64_t offset, uint32_t flags)
f |= LIBNBD_CMD_FLAG_FUA;
nbdplug_prepare (&s);
nbdplug_register (h, &s, nbd_aio_zero_callback (h->nbd, count, offset,
- &s, nbdplug_notify, f));
+ nbdplug_notify, &s, f));
return nbdplug_reply (h, &s);
}
@@ -724,7 +724,7 @@ nbdplug_trim (void *handle, uint32_t count, uint64_...
2019 Aug 15
3
[nbdkit PATCH] nbd: Another libnbd version bump
...s.cb, f));
return nbdplug_reply (h, &s);
}
@@ -729,8 +731,7 @@ nbdplug_zero (void *handle, uint32_t count, uint64_t offset, uint32_t flags)
if (flags & NBDKIT_FLAG_FUA)
f |= LIBNBD_CMD_FLAG_FUA;
nbdplug_prepare (&s);
- nbdplug_register (h, &s, nbd_aio_zero_callback (h->nbd, count, offset,
- nbdplug_notify, &s, f));
+ nbdplug_register (h, &s, nbd_aio_zero (h->nbd, count, offset, s.cb, f));
return nbdplug_reply (h, &s);
}
@@ -744,8 +745,7 @@ nbdplug_trim (void *handle, uint32_t count, uint...
2019 Aug 13
0
[PATCH libnbd] api: Rename nbd_aio_*_callback to nbd_aio_*.
...ite zeroes command to the NBD server";
- longdesc = "\
-Issue a write zeroes command to the NBD server. This returns the
-unique positive 64 bit cookie for this command, or C<-1> on
-error. To check if the command completed, call
-C<nbd_aio_command_completed>, or use C<nbd_aio_zero_callback>.
-Parameters behave as documented in C<nbd_zero>.";
- };
-
- "aio_zero_callback", {
default_call with
args = [ UInt64 "count"; UInt64 "offset" ];
optargs = [ OClosure completion_closure; OFlags ("flags", cmd_flags) ];
ret...
2019 Aug 13
2
[PATCH libnbd] api: Rename nbd_aio_*_callback to nbd_aio_*.
This applies on top of the OClosure v2 series posted a few
minutes ago.
Rich.