search for: ext2file

Displaying 6 results from an estimated 6 matches for "ext2file".

2020 Feb 12
0
[nbdkit PATCH 3/3] ext2: Add mode for letting client exportname choose file from image
...); + file = NULL; + } + else if (file[0] != '/') { nbdkit_error ("the file parameter must refer to an absolute path"); return -1; } @@ -103,7 +107,8 @@ ext2_config_complete (nbdkit_next_config_complete *next, void *nxdata) } #define ext2_config_help \ - "ext2file=<FILENAME> (required) File to serve inside the disk image." + "ext2file=<FILENAME> (required) Absolute name of file to serve inside the\n" \ + " disk image, or 'exportname' for client choice." /* The per-connection handle. */ s...
2020 Feb 12
4
[nbdkit PATCH 0/3] Make ext2 a filter
...) == 0) { - if (disk != NULL) { - nbdkit_error ("disk parameter specified more than once"); - return -1; - } - disk = nbdkit_absolute_path (value); - if (disk == NULL) - return -1; - } - else if (strcmp (key, "file") == 0) { + if (strcmp (key, "ext2file") == 0) { if (file != NULL) { - nbdkit_error ("file parameter specified more than once"); + nbdkit_error ("ext2file parameter specified more than once"); return -1; } file = strdup (value); @@ -85,20 +79,17 @@ ext2_config (const char *key, co...
2020 Aug 27
0
[nbdkit PATCH 2/2] ext2: Supply .list_exports and .default_export
When using ext2file=exportname to pick the file to server from the client's export name, we do not want to leak the underlying plugin's export list. While touching this, take advantage of string lifetimes via nbdkit_strdup_intern and similar for less cleanup bookkeeping. Note that we don't actually imple...
2020 Aug 27
4
[nbdkit PATCH 0/2] ext2 export list tweaks
Applies on top of my pending series for the exportname filter, addressing one of the todo's in that cover letter. Eric Blake (2): filters: Add .export_description wrappers ext2: Supply .list_exports and .default_export filters/ext2/nbdkit-ext2-filter.pod | 3 +- tests/Makefile.am | 16 +++- filters/ext2/ext2.c | 125 +++++++++++++++++++---------
2020 Feb 27
0
ANNOUNCE: nbdkit 1.18 - high performance NBD server
...ly on a single command line. It is similar to nbdkit-sh-plugin(3). nbdkit-ext2-plugin(1) is deprecated and will be removed in the next release after this one (nbdkit 1.20). As a replacement use nbdkit-ext2-filter(1) like this: nbdkit --filter=ext2 file fs.img ext2file=/disks/disk.raw nbdkit-python-plugin(3) now offers a version 2 API which avoids copying the data buffer, improving performance. The original protocol (now retrospectively called version 1) is still supported for backwards compatibility. The version 1 protocol was also...
2020 Sep 21
18
[nbdkit PATCH v3 00/14] exportname filter
It's been several weeks since I posted v2 (I got distracted by improving libnbd to better test things, which in turn surfaced some major memory leak problems in nbdsh that are now fixed). Many of the patches are minor rebases from v2, with the biggest changes being fallout from: - patch 2: rename nbdkit_add_default_export to nbdkit_use_default_export - overall: this missed 1.22, so update