Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package nbdkit for openSUSE:Factory checked in at 2023-11-02 20:21:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nbdkit (Old) and /work/SRC/openSUSE:Factory/.nbdkit.new.17445 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nbdkit" Thu Nov 2 20:21:46 2023 rev:11 rq:1121716 version:1.36.1 Changes: -------- --- /work/SRC/openSUSE:Factory/nbdkit/nbdkit.changes 2023-10-01 21:23:24.407034651 +0200 +++ /work/SRC/openSUSE:Factory/.nbdkit.new.17445/nbdkit.changes 2023-11-02 20:21:57.920929485 +0100 @@ -1,0 +2,11 @@ +Wed Oct 25 19:34:49 UTC 2023 - [email protected] + +- Update to version 1.36.1: + * Version 1.36.1. + * python: Document nbdkit.disconnect(force) helper function + * python: List helper functions in alphabetical order + * python: Clarify possible handle values returned by open() method + * tests: Fix incorrect comment in tests + * docs: Remove references to -U - when it is implicit + +------------------------------------------------------------------- Old: ---- nbdkit-1.36.0.tar.xz New: ---- _servicedata nbdkit-1.36.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nbdkit.spec ++++++ --- /var/tmp/diff_new_pack.bud0al/_old 2023-11-02 20:21:58.556952889 +0100 +++ /var/tmp/diff_new_pack.bud0al/_new 2023-11-02 20:21:58.560953035 +0100 @@ -27,7 +27,7 @@ %global broken_test_arches %{arm} aarch64 Name: nbdkit -Version: 1.36.0 +Version: 1.36.1 Release: 0 Summary: Network Block Device server License: BSD-3-Clause @@ -182,9 +182,9 @@ + # The plugins below have non-trivial dependencies are so are # packaged separately. - %package cdi-plugin Summary: Containerized Data Import plugin for %{name} ++++++ _service ++++++ --- /var/tmp/diff_new_pack.bud0al/_old 2023-11-02 20:21:58.588954066 +0100 +++ /var/tmp/diff_new_pack.bud0al/_new 2023-11-02 20:21:58.592954213 +0100 @@ -1,7 +1,7 @@ <services> <service name="tar_scm" mode="disabled"> <param name="filename">nbdkit</param> - <param name="revision">v1.36.0</param> + <param name="revision">v1.36.1</param> <param name="scm">git</param> <param name="submodules">disable</param> <param name="url">https://gitlab.com/nbdkit/nbdkit.git</param> ++++++ _servicedata ++++++ <servicedata> <service name="tar_scm"> <param name="url">https://gitlab.com/nbdkit/nbdkit.git</param> <param name="changesrevision">5b39a0d257b7f287df93c2ba3f219edb0eb62237</param></service></servicedata> (No newline at EOF) ++++++ nbdkit-1.36.0.tar.xz -> nbdkit-1.36.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/BENCHMARKING new/nbdkit-1.36.1/BENCHMARKING --- old/nbdkit-1.36.0/BENCHMARKING 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/BENCHMARKING 2023-10-23 17:02:37.000000000 +0200 @@ -128,9 +128,9 @@ To test copying speed you can use âqemu-img convertâ, to or from nbdkit: - nbdkit -U - memory 1G --run 'qemu-img convert file.qcow2 -O raw $nbd' + nbdkit memory 1G --run 'qemu-img convert file.qcow2 -O raw $nbd' - nbdkit -U - memory 1G --run 'qemu-img convert $nbd -O qcow2 file.qcow2' + nbdkit memory 1G --run 'qemu-img convert $nbd -O qcow2 file.qcow2' Notes: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/configure.ac new/nbdkit-1.36.1/configure.ac --- old/nbdkit-1.36.0/configure.ac 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/configure.ac 2023-10-23 17:02:37.000000000 +0200 @@ -31,7 +31,7 @@ m4_define([NBDKIT_VERSION_MAJOR], [1]) m4_define([NBDKIT_VERSION_MINOR], [36]) -m4_define([NBDKIT_VERSION_MICRO], [0]) +m4_define([NBDKIT_VERSION_MICRO], [1]) AC_INIT([nbdkit], NBDKIT_VERSION_MAJOR.NBDKIT_VERSION_MINOR.NBDKIT_VERSION_MICRO) AC_CONFIG_MACRO_DIR([m4]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/docs/nbdkit-captive.pod new/nbdkit-1.36.1/docs/nbdkit-captive.pod --- old/nbdkit-1.36.0/docs/nbdkit-captive.pod 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/docs/nbdkit-captive.pod 2023-10-23 17:02:37.000000000 +0200 @@ -46,7 +46,7 @@ Running nbdkit captive under nbdsh for unit testing: - nbdkit -U - memory 1 --run 'nbdsh -u "$uri" -c "print(h.pread(1, 0))"' + nbdkit memory 1 --run 'nbdsh -u "$uri" -c "print(h.pread(1, 0))"' The following shell variables are available in the I<--run> argument: @@ -98,20 +98,13 @@ not desirable, to have nbdkit fork into the background when using I<--run>. -Even when running captive, nbdkit still listens on the regular TCP/IP -port, unless you specify the I<-p>/I<-U> options. If you want a truly -private captive nbdkit, then you should create a private random -Unix socket, like this: - - nbdkit -U - plugin [args] --run '...' - =head2 Copying data in and out of plugins with captive nbdkit Captive nbdkit + L<qemu-img(1)> can be used to copy data into and out of nbdkit plugins. For example L<nbdkit-example1-plugin(1)> contains an embedded disk image. To copy it out: - nbdkit -U - example1 --run 'qemu-img convert $nbd disk.img' + nbdkit example1 --run 'qemu-img convert $nbd disk.img' If the source suffers from temporary network failures L<nbdkit-retry-filter(1)> or L<nbdkit-retry-request-filter(1)> may @@ -121,7 +114,7 @@ overwritten must be the same size), use L<nbdkit-tar-filter(1)> like this: - nbdkit -U - file data.tar --filter=tar tar-entry=disk.img \ + nbdkit file data.tar --filter=tar tar-entry=disk.img \ --run 'qemu-img convert -n disk.img $nbd' =head1 EXIT WITH PARENT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/filters/cacheextents/nbdkit-cacheextents-filter.pod new/nbdkit-1.36.1/filters/cacheextents/nbdkit-cacheextents-filter.pod --- old/nbdkit-1.36.0/filters/cacheextents/nbdkit-cacheextents-filter.pod 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/filters/cacheextents/nbdkit-cacheextents-filter.pod 2023-10-23 17:02:37.000000000 +0200 @@ -17,7 +17,7 @@ the plugin can provide multiple extents for the same high latency as a single extent (such as L<nbdkit-vddk-plugin(1)>). For example: - nbdkit -U - --filter=cacheextents --run 'qemu-img map $nbd' vddk ... + nbdkit --filter=cacheextents --run 'qemu-img map $nbd' vddk ... For files with big extents (when it is unlikely for one extents() call to return multiple different extents) this does not slow down the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/filters/checkwrite/nbdkit-checkwrite-filter.pod new/nbdkit-1.36.1/filters/checkwrite/nbdkit-checkwrite-filter.pod --- old/nbdkit-1.36.0/filters/checkwrite/nbdkit-checkwrite-filter.pod 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/filters/checkwrite/nbdkit-checkwrite-filter.pod 2023-10-23 17:02:37.000000000 +0200 @@ -28,17 +28,17 @@ creating an nbdkit instance containing some test data, overlaying this filter, and copying from and to nbdkit at the same time: - nbdkit -U - --filter=checkwrite data "@32768 1" \ + nbdkit --filter=checkwrite data "@32768 1" \ --run 'nbdcopy "$uri" "$uri"' =for paragraph - nbdkit -U - --filter=checkwrite file disk.img \ + nbdkit --filter=checkwrite file disk.img \ --run 'nbdcopy "$uri" "$uri"' =for paragraph - nbdkit -U - --filter=checkwrite linuxdisk testdir/ \ + nbdkit --filter=checkwrite linuxdisk testdir/ \ --run 'qemu-img convert -n "$uri" "$uri"' If the copying program is buggy then you will see EIO errors and (if diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/filters/pause/nbdkit-pause-filter.pod new/nbdkit-1.36.1/filters/pause/nbdkit-pause-filter.pod --- old/nbdkit-1.36.0/filters/pause/nbdkit-pause-filter.pod 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/filters/pause/nbdkit-pause-filter.pod 2023-10-23 17:02:37.000000000 +0200 @@ -39,7 +39,7 @@ Pick a large file, disk image or ISO, serve it over NBD, and start copying it: - nbdkit -U - --filter=pause --filter=rate \ + nbdkit --filter=pause --filter=rate \ file BIG_FILE.ISO rate=10M pause-control=sock \ --run 'qemu-img convert -p $nbd /var/tmp/out' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/filters/retry/nbdkit-retry-filter.pod new/nbdkit-1.36.1/filters/retry/nbdkit-retry-filter.pod --- old/nbdkit-1.36.0/filters/retry/nbdkit-retry-filter.pod 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/filters/retry/nbdkit-retry-filter.pod 2023-10-23 17:02:37.000000000 +0200 @@ -50,7 +50,7 @@ In this example we copy and convert a large file using L<nbdkit-ssh-plugin(1)>, L<qemu-img(1)> and L<nbdkit-captive(1)>. - nbdkit -U - \ + nbdkit \ ssh host=remote.example.com /var/tmp/test.iso \ --filter=retry \ --run 'qemu-img convert -p -f raw $nbd -O qcow2 test.qcow2' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/plugins/linuxdisk/nbdkit-linuxdisk-plugin.pod new/nbdkit-1.36.1/plugins/linuxdisk/nbdkit-linuxdisk-plugin.pod --- old/nbdkit-1.36.0/plugins/linuxdisk/nbdkit-linuxdisk-plugin.pod 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/plugins/linuxdisk/nbdkit-linuxdisk-plugin.pod 2023-10-23 17:02:37.000000000 +0200 @@ -57,7 +57,7 @@ filesystem (ie. the first partition, see L<nbdkit-partition-filter(1)>). -=item nbdkit -U - linuxdisk /path/to/directory +=item nbdkit linuxdisk /path/to/directory --run 'nbdcopy "$uri" ext2fs.img' This serves nothing. Instead it turns a directory into a disk image, @@ -77,7 +77,7 @@ ln root/sbin/busybox root/sbin/init ln root/sbin/busybox root/bin/ls ln root/sbin/busybox root/bin/sh - nbdkit -U - linuxdisk root --run ' + nbdkit linuxdisk root --run ' qemu-kvm -display none -kernel /boot/vmlinuz -drive file=nbd:unix:$unixsocket,snapshot=on -append "console=ttyS0 root=/dev/sda1 rw" -serial stdio ' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/plugins/nbd/nbdkit-nbd-plugin.pod new/nbdkit-1.36.1/plugins/nbd/nbdkit-nbd-plugin.pod --- old/nbdkit-1.36.0/plugins/nbd/nbdkit-nbd-plugin.pod 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/plugins/nbd/nbdkit-nbd-plugin.pod 2023-10-23 17:02:37.000000000 +0200 @@ -298,7 +298,7 @@ In general, note that it is best to keep the plaintext connection limited to a Unix socket on the local machine. - nbdkit -U - -o --tls=off nbd hostname=example.com export=foo tls=require \ + nbdkit -o --tls=off nbd hostname=example.com export=foo tls=require \ --run '/path/to/oldclient --socket=$unixsocket' =for paragraph diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/plugins/python/examples/ramdisk.py new/nbdkit-1.36.1/plugins/python/examples/ramdisk.py --- old/nbdkit-1.36.0/plugins/python/examples/ramdisk.py 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/plugins/python/examples/ramdisk.py 2023-10-23 17:02:37.000000000 +0200 @@ -49,9 +49,10 @@ def open(readonly): nbdkit.debug("open: readonly=%d" % readonly) - # You can return any non-NULL Python object from open, and the - # same object will be passed as the first arg to the other - # callbacks [in the client connected phase]. + # You can return any Python object from open (even None), and the + # same object will be passed as the first arg 'h' to the other + # callbacks below. To return an error from this method you must + # throw an exception. return 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/plugins/python/modfunctions.c new/nbdkit-1.36.1/plugins/python/modfunctions.c --- old/nbdkit-1.36.0/plugins/python/modfunctions.c 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/plugins/python/modfunctions.c 2023-10-23 17:02:37.000000000 +0200 @@ -144,6 +144,8 @@ static PyMethodDef NbdkitMethods[] = { { "debug", debug, METH_VARARGS, "Print a debug message" }, + { "disconnect", do_disconnect, METH_VARARGS, + "Request disconnection from current client" }, { "export_name", export_name, METH_NOARGS, "Return the optional export name negotiated with the client" }, { "parse_probability", parse_probability, METH_VARARGS, @@ -154,8 +156,6 @@ "Store an errno value prior to throwing an exception" }, { "shutdown", do_shutdown, METH_NOARGS, "Request asynchronous shutdown" }, - { "disconnect", do_disconnect, METH_VARARGS, - "Request disconnection from current client" }, { NULL } }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/plugins/python/nbdkit-python-plugin.pod new/nbdkit-1.36.1/plugins/python/nbdkit-python-plugin.pod --- old/nbdkit-1.36.0/plugins/python/nbdkit-python-plugin.pod 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/plugins/python/nbdkit-python-plugin.pod 2023-10-23 17:02:37.000000000 +0200 @@ -119,18 +119,17 @@ Send a debug message to stderr or syslog if verbose messages are enabled. +=head3 C<nbdkit.disconnect(force)> + +Disconnect from the client. If C<force> is C<True> then nbdkit will +disconnect the client immediately. + =head3 C<nbdkit.export_name()> Return the export name negotiated with the client as a Unicode string. Note this should not be trusted because the client can send whatever it wants. -=head3 C<nbdkit.set_error(err)> - -Record C<err> as the reason you are about to throw an exception. C<err> -should correspond to usual errno values, where it may help to -C<import errno>. - =head3 C<nbdkit.parse_size(str)> Parse a string (such as "100M") into a size in bytes. Wraps the @@ -142,6 +141,12 @@ floating point number. Wraps the C<nbdkit_parse_probability()> C function. +=head3 C<nbdkit.set_error(err)> + +Record C<err> as the reason you are about to throw an exception. C<err> +should correspond to usual errno values, where it may help to +C<import errno>. + =head3 C<nbdkit.shutdown()> Request asynchronous server shutdown. @@ -307,8 +312,9 @@ def open(readonly): # return handle -You can return any non-NULL Python value as the handle. It is passed -back in subsequent calls. +You can return any Python value (even C<None>) as the handle. It is +passed back as the first arg C<'h'> in subsequent calls. To return an +error from this method you must throw an exception. =item C<close> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/plugins/random/nbdkit-random-plugin.pod new/nbdkit-1.36.1/plugins/random/nbdkit-random-plugin.pod --- old/nbdkit-1.36.0/plugins/random/nbdkit-random-plugin.pod 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/plugins/random/nbdkit-random-plugin.pod 2023-10-23 17:02:37.000000000 +0200 @@ -27,7 +27,7 @@ copying programs by making the source and destination NBD URIs be the same: - nbdkit -U - random size=100M --run 'nbdcopy "$uri" "$uri"' + nbdkit random size=100M --run 'nbdcopy "$uri" "$uri"' C<qemu-img convert> could be used in place of nbdcopy. See also L<nbdkit-checkwrite-filter(1)>. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/plugins/sparse-random/nbdkit-sparse-random-plugin.pod new/nbdkit-1.36.1/plugins/sparse-random/nbdkit-sparse-random-plugin.pod --- old/nbdkit-1.36.0/plugins/sparse-random/nbdkit-sparse-random-plugin.pod 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/plugins/sparse-random/nbdkit-sparse-random-plugin.pod 2023-10-23 17:02:37.000000000 +0200 @@ -42,7 +42,7 @@ data read (if not, returning EIO). Thus when testing copies you can use a single instance of this plugin for both read and write: - nbdkit -U - sparse-random size=1T --run 'nbdcopy "$uri" "$uri"' + nbdkit sparse-random size=1T --run 'nbdcopy "$uri" "$uri"' C<qemu-img convert> could be used in place of nbdcopy. See also L<nbdkit-checkwrite-filter(1)>. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/plugins/torrent/nbdkit-torrent-plugin.pod new/nbdkit-1.36.1/plugins/torrent/nbdkit-torrent-plugin.pod --- old/nbdkit-1.36.0/plugins/torrent/nbdkit-torrent-plugin.pod 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/plugins/torrent/nbdkit-torrent-plugin.pod 2023-10-23 17:02:37.000000000 +0200 @@ -47,7 +47,7 @@ url=https://torrent.fedoraproject.org/torrents/Fedora-Server-dvd-x86_64-32.torrent wget $url - nbdkit -U - torrent Fedora-Server-*.torrent \ + nbdkit torrent Fedora-Server-*.torrent \ --run 'qemu-system-x86_64 -m 2048 -cdrom $nbd -boot d' =head2 Boot the Debian installer @@ -56,7 +56,7 @@ url=https://cdimage.debian.org/debian-cd/current/amd64/bt-dvd/debian-10.4.0-amd64-DVD-1.iso.torrent wget $url - nbdkit -U - torrent debian-*.torrent \ + nbdkit torrent debian-*.torrent \ --run 'qemu-system-x86_64 -m 2048 -cdrom $nbd -boot d' =head1 PARAMETERS @@ -99,7 +99,7 @@ a path like C<file=SUBDIR/DISK>. To list all the files within the torrent try running: - $ nbdkit -fv -U - torrent file.torrent + $ nbdkit -fv torrent file.torrent and examining the debug output. As an alternative you can use standard BitTorrent tools, eg: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/plugins/vddk/nbdkit-vddk-plugin.pod new/nbdkit-1.36.1/plugins/vddk/nbdkit-vddk-plugin.pod --- old/nbdkit-1.36.0/plugins/vddk/nbdkit-vddk-plugin.pod 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/plugins/vddk/nbdkit-vddk-plugin.pod 2023-10-23 17:02:37.000000000 +0200 @@ -53,7 +53,7 @@ size of the final VMDK disk image and must be at least as large as the input disk: - nbdkit -U - vddk \ + nbdkit vddk \ /absolute/path/to/output.vmdk \ create=true create-size=100M \ --run 'qemu-img convert input.qcow2 $uri' @@ -456,7 +456,7 @@ Another way to get the thumbprint of a server is to connect to the server using a bogus thumbprint with debugging enabled: - nbdkit -U - -fv vddk server=esxi.example.com [...] thumbprint=12 \ + nbdkit -fv vddk server=esxi.example.com [...] thumbprint=12 \ --run 'qemu-img info "$uri"' The nbdkit process will try to connect (and fail because the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/tests/python-export-list.py new/nbdkit-1.36.1/tests/python-export-list.py --- old/nbdkit-1.36.0/tests/python-export-list.py 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/tests/python-export-list.py 2023-10-23 17:02:37.000000000 +0200 @@ -29,8 +29,8 @@ # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. -# Create an nbdkit sh plugin which reflects the export name back to -# the caller in the virtual device data and size. +# Create an nbdkit python plugin which reflects the export name back +# to the caller in the virtual device data and size. import nbdkit diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.36.0/tests/python-export-name.py new/nbdkit-1.36.1/tests/python-export-name.py --- old/nbdkit-1.36.0/tests/python-export-name.py 2023-09-27 12:18:59.000000000 +0200 +++ new/nbdkit-1.36.1/tests/python-export-name.py 2023-10-23 17:02:37.000000000 +0200 @@ -29,8 +29,8 @@ # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. -# Create an nbdkit sh plugin which reflects the export name back to -# the caller in the virtual device data and size. +# Create an nbdkit python plugin which reflects the export name back +# to the caller in the virtual device data and size. import nbdkit
