Displaying 3 results from an estimated 3 matches for "extents_new".
2020 Mar 23
6
[PATCH nbdkit 0/3] msys2 support for review
I pushed a few of the msys2 patches upstream. I changed the way that
$(SHARED_LDFLAGS) works so it's more to my liking, and the others were
pushed unchanged. Three patches remain which I'm posting on the
mailing list for proper review.
Rich.
2020 Mar 23
0
[PATCH nbdkit 1/3] include: Function indirection for PE DLL
...int (*read_password) (const char *value, char **password);
+ char * (*realpath) (const char *path);
+ int (*nanosleep) (unsigned sec, unsigned nsec);
+ const char * (*export_name) (void);
+ int (*peer_name) (void *addr, void *addrlen);
+ void (*shutdown) (void);
+
+ struct nbdkit_extents *(*extents_new) (uint64_t start, uint64_t end);
+ void (*extents_free) (struct nbdkit_extents *);
+ size_t (*extents_count) (const struct nbdkit_extents *);
+ struct nbdkit_extent (*get_extent) (const struct nbdkit_extents *, size_t);
+ int (*add_extent) (struct nbdkit_extents *, uint64_t offset, uint64_t len...
2020 Mar 23
0
[PATCH nbdkit 2/3] server: Inject API functions for Windows
...+ functions->realpath = nbdkit_realpath;
+ functions->nanosleep = nbdkit_nanosleep;
+ functions->export_name = nbdkit_export_name;
+ functions->peer_name = dummy_peer_name;
+ functions->shutdown = nbdkit_shutdown;
+ functions->add_extent = nbdkit_add_extent;
+ functions->extents_new = nbdkit_extents_new;
+ functions->extents_free = nbdkit_extents_free;
+ functions->extents_count = nbdkit_extents_count;
+ functions->get_extent = nbdkit_get_extent;
+}
+#endif
+
int
main (int argc, char *argv[])
{
@@ -178,6 +222,9 @@ main (int argc, char *argv[])
perror ("...