Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package nbdkit for openSUSE:Factory checked in at 2024-09-04 13:26:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nbdkit (Old) and /work/SRC/openSUSE:Factory/.nbdkit.new.10096 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nbdkit" Wed Sep 4 13:26:46 2024 rev:14 rq:1198586 version:1.40.2 Changes: -------- --- /work/SRC/openSUSE:Factory/nbdkit/nbdkit.changes 2024-08-06 09:08:41.474598466 +0200 +++ /work/SRC/openSUSE:Factory/.nbdkit.new.10096/nbdkit.changes 2024-09-04 13:26:49.311282425 +0200 @@ -1,0 +2,11 @@ +Tue Sep 03 17:55:21 UTC 2024 - jfeh...@suse.com + +- Update to version 1.40.2: + * Version 1.40.2. + * tests/dummy-vddk.c: Stop the background thread in dummy _Exit function + * vddk: Check create-size is aligned to VIXDISKLIB_SECTOR_SIZE + * vddk: Detect possible VDDK crash and warn + * docs: Refresh nbdkit-service(1) page +- Enable bzip2 filter + +------------------------------------------------------------------- Old: ---- nbdkit-1.40.1.tar.xz New: ---- nbdkit-1.40.2.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nbdkit.spec ++++++ --- /var/tmp/diff_new_pack.5wpDtb/_old 2024-09-04 13:26:49.967309857 +0200 +++ /var/tmp/diff_new_pack.5wpDtb/_new 2024-09-04 13:26:49.967309857 +0200 @@ -27,7 +27,7 @@ %global broken_test_arches %{arm} aarch64 Name: nbdkit -Version: 1.40.1 +Version: 1.40.2 Release: 0 Summary: Network Block Device server License: BSD-3-Clause @@ -49,7 +49,7 @@ BuildRequires: perl(Pod::Man) BuildRequires: perl(Pod::Simple) BuildRequires: pkgconfig(bash-completion) -BuildRequires: pkgconfig(ext2fs) +BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(gnutls) >= 3.3.0 BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(liblzma) @@ -105,7 +105,6 @@ %package basic-plugins Summary: Basic plugins for %{name} - Requires: %{name}-server = %{version}-%{release} Provides: %{name}-data-plugin = %{version}-%{release} Provides: %{name}-eval-plugin = %{version}-%{release} @@ -145,8 +144,6 @@ nbdkit-memory-plugin A virtual memory plugin. -nbdkit-null-plugin A null (bitbucket) plugin. - nbdkit-ondemand-plugin Creates filesystems on demand. nbdkit-ones-plugin Fill disk with repeated 0xff or other bytes. @@ -167,7 +164,6 @@ %package example-plugins Summary: Example plugins for %{name} - Requires: %{name}-server = %{version}-%{release} %description example-plugins @@ -175,21 +171,11 @@ - - - - - - - - - # The plugins below have non-trivial dependencies are so are # packaged separately. %package cdi-plugin Summary: Containerized Data Import plugin for %{name} - Requires: %{name}-server = %{version}-%{release} Requires: jq Requires: podman @@ -199,12 +185,12 @@ %package curl-plugin Summary: HTTP/FTP (cURL) plugin for %{name} - Requires: %{name}-server = %{version}-%{release} %description curl-plugin This package contains cURL (HTTP/FTP) support for %{name}. + # In theory this is noarch, but because plugins are placed in _libdir # which varies across architectures, RPM does not allow this. @@ -221,7 +207,6 @@ %package guestfs-plugin Summary: libguestfs plugin for %{name} - Requires: %{name}-server = %{version}-%{release} %description guestfs-plugin @@ -229,7 +214,6 @@ %package linuxdisk-plugin Summary: Virtual Linux disk plugin for %{name} - Requires: %{name}-server = %{version}-%{release} # for mke2fs Requires: e2fsprogs @@ -237,17 +221,8 @@ %description linuxdisk-plugin This package is a virtual Linux disk plugin for %{name}. -%package gzip-plugin -Summary: GZip plugin for %{name} - -Requires: %{name}-server = %{version}-%{release} - -%description gzip-plugin -This package is a gzip plugin for %{name}. - %package nbd-plugin Summary: NBD proxy / forward plugin for %{name} - Requires: %{name}-server = %{version}-%{release} %description nbd-plugin @@ -256,7 +231,6 @@ %package python-plugin Summary: Python 3 plugin for %{name} - Requires: %{name}-server = %{version}-%{release} %description python-plugin @@ -264,7 +238,6 @@ %package ssh-plugin Summary: SSH plugin for %{name} - Requires: %{name}-server = %{version}-%{release} %description ssh-plugin @@ -272,7 +245,6 @@ %package tmpdisk-plugin Summary: Remote temporary filesystem disk plugin for %{name} - Requires: %{name}-server = %{version}-%{release} # For mkfs and mke2fs (defaults). Requires: e2fsprogs @@ -285,7 +257,6 @@ %package vddk-plugin Summary: VMware VDDK plugin for %{name} - Requires: %{name}-server = %{version}-%{release} %description vddk-plugin @@ -294,7 +265,6 @@ %package basic-filters Summary: Basic filters for %{name} - Requires: %{name}-server = %{version}-%{release} Provides: %{name}-blocksize-filter = %{version}-%{release} Provides: %{name}-blocksize-policy-filter = %{version}-%{release} @@ -336,8 +306,8 @@ %description basic-filters This package contains filters for %{name} which only depend on simple -C libraries: glibc, gnutls. Other filters for nbdkit with more -complex dependencies are packaged separately. +C libraries: glibc, gnutls, zlib, and zstd. Other filters for nbdkit +with more complex dependencies are packaged separately. nbdkit-blocksize-filter Adjusts block size of requests sent to plugins. @@ -369,6 +339,8 @@ nbdkit-fua-filter Modifies flush behaviour in plugins. +nbdkit-gzip-filter Decompress a .gz file. + nbdkit-ip-filter Filters clients by IP address. nbdkit-limit-filter Limits the number of clients that can connect concurrently. @@ -413,25 +385,28 @@ nbdkit-spinning-filter Add seek delays to simulate a spinning hard disk. -nbdkit-stats-filter Displays statistics about operations. - nbdkit-swab-filter Filter for swapping byte order. nbdkit-tls-fallback-filter TLS protection filter. nbdkit-truncate-filter Truncates, expands, rounds up or rounds down size. -%package gzip-filter -Summary: GZip filter for %{name} +%package bzip2-filter +Summary: BZip2 filter for %{name} +Requires: %{name}-server = %{version}-%{release} + +%description bzip2-filter +This package is a bzip2 filter for %{name}. +%package stats-filter +Summary: Statistics filter for %{name} Requires: %{name}-server = %{version}-%{release} -%description gzip-filter -This package is a gzip filter for %{name}. +%description stats-filter +Display statistics about operations. %package tar-filter Summary: Tar archive filter for %{name} - Requires: %{name}-server = %{version}-%{release} Requires: tar @@ -440,7 +415,6 @@ %package xz-filter Summary: XZ filter for %{name} - Requires: %{name}-server = %{version}-%{release} %description xz-filter @@ -448,7 +422,6 @@ %package devel Summary: Development files and documentation for %{name} - Requires: %{name}-server = %{version}-%{release} Requires: pkgconfig @@ -678,6 +651,7 @@ %{_libdir}/%{name}/filters/nbdkit-exportname-filter.so %{_libdir}/%{name}/filters/nbdkit-extentlist-filter.so %{_libdir}/%{name}/filters/nbdkit-fua-filter.so +%{_libdir}/%{name}/filters/nbdkit-gzip-filter.so %{_libdir}/%{name}/filters/nbdkit-ip-filter.so %{_libdir}/%{name}/filters/nbdkit-limit-filter.so %{_libdir}/%{name}/filters/nbdkit-log-filter.so @@ -700,7 +674,6 @@ %{_libdir}/%{name}/filters/nbdkit-rotational-filter.so %{_libdir}/%{name}/filters/nbdkit-scan-filter.so %{_libdir}/%{name}/filters/nbdkit-spinning-filter.so -%{_libdir}/%{name}/filters/nbdkit-stats-filter.so %{_libdir}/%{name}/filters/nbdkit-swab-filter.so %{_libdir}/%{name}/filters/nbdkit-tls-fallback-filter.so %{_libdir}/%{name}/filters/nbdkit-truncate-filter.so @@ -719,6 +692,7 @@ %{_mandir}/man1/nbdkit-exportname-filter.1* %{_mandir}/man1/nbdkit-extentlist-filter.1* %{_mandir}/man1/nbdkit-fua-filter.1* +%{_mandir}/man1/nbdkit-gzip-filter.1* %{_mandir}/man1/nbdkit-ip-filter.1* %{_mandir}/man1/nbdkit-limit-filter.1* %{_mandir}/man1/nbdkit-log-filter.1* @@ -741,14 +715,17 @@ %{_mandir}/man1/nbdkit-rotational-filter.1* %{_mandir}/man1/nbdkit-scan-filter.1* %{_mandir}/man1/nbdkit-spinning-filter.1* -%{_mandir}/man1/nbdkit-stats-filter.1* %{_mandir}/man1/nbdkit-swab-filter.1* %{_mandir}/man1/nbdkit-tls-fallback-filter.1* %{_mandir}/man1/nbdkit-truncate-filter.1* -%files gzip-filter -%{_libdir}/%{name}/filters/nbdkit-gzip-filter.so -%{_mandir}/man1/nbdkit-gzip-filter.1* +%files bzip2-filter +%{_libdir}/%{name}/filters/nbdkit-bzip2-filter.so +%{_mandir}/man1/nbdkit-bzip2-filter.1* + +%files stats-filter +%{_libdir}/%{name}/filters/nbdkit-stats-filter.so +%{_mandir}/man1/nbdkit-stats-filter.1* %files tar-filter %{_libdir}/%{name}/filters/nbdkit-tar-filter.so ++++++ _service ++++++ --- /var/tmp/diff_new_pack.5wpDtb/_old 2024-09-04 13:26:49.999311196 +0200 +++ /var/tmp/diff_new_pack.5wpDtb/_new 2024-09-04 13:26:50.003311363 +0200 @@ -1,7 +1,7 @@ <services> <service name="tar_scm" mode="manual"> <param name="filename">nbdkit</param> - <param name="revision">v1.40.1</param> + <param name="revision">v1.40.2</param> <param name="scm">git</param> <param name="submodules">disable</param> <param name="url">https://gitlab.com/nbdkit/nbdkit.git</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.5wpDtb/_old 2024-09-04 13:26:50.019312032 +0200 +++ /var/tmp/diff_new_pack.5wpDtb/_new 2024-09-04 13:26:50.023312199 +0200 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://gitlab.com/nbdkit/nbdkit.git</param> - <param name="changesrevision">76daf2f09cb96eb9b094d65fbabe9e278e036474</param></service></servicedata> + <param name="changesrevision">57bd8e5de95c1d3b46108e64986e9cd2862b3495</param></service></servicedata> (No newline at EOF) ++++++ nbdkit-1.40.1.tar.xz -> nbdkit-1.40.2.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.40.1/configure.ac new/nbdkit-1.40.2/configure.ac --- old/nbdkit-1.40.1/configure.ac 2024-07-29 14:28:36.000000000 +0200 +++ new/nbdkit-1.40.2/configure.ac 2024-08-24 09:46:41.000000000 +0200 @@ -31,7 +31,7 @@ m4_define([NBDKIT_VERSION_MAJOR], [1]) m4_define([NBDKIT_VERSION_MINOR], [40]) -m4_define([NBDKIT_VERSION_MICRO], [1]) +m4_define([NBDKIT_VERSION_MICRO], [2]) 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.40.1/docs/nbdkit-service.pod new/nbdkit-1.40.2/docs/nbdkit-service.pod --- old/nbdkit-1.40.1/docs/nbdkit-service.pod 2024-07-29 14:28:36.000000000 +0200 +++ new/nbdkit-1.40.2/docs/nbdkit-service.pod 2024-08-24 09:46:41.000000000 +0200 @@ -12,16 +12,18 @@ nbdkit supports socket activation (sometimes called systemd socket activation). This is a simple protocol where instead of nbdkit itself -opening the listening socket(s), the parent process (typically -systemd) passes in pre-opened file descriptors. Socket activation -lets you serve infrequent NBD requests using a superserver without -needing nbdkit to be running the whole time. +opening the listening socket(s), the parent process (typically systemd +or libnbd) passes in pre-opened file descriptors. + +One use for socket activation is to serve infrequent NBD requests +using a superserver without needing nbdkit to be running the whole +time. Another use is to run nbdkit from a controlling libnbd process. Socket activation is triggered when both the C<LISTEN_FDS> and C<LISTEN_PID> environment variables are set. In this mode using -I<-i>, I<-p>, I<--run>, I<-s> or I<-U> flags on the command line is -illegal and will cause an error. Also in this mode nbdkit does not -fork into the background (ie. I<-f> is implied). +I<-i>, I<-p>, I<--run>, I<-s> or I<-U> flags on the command line will +cause an error. Also in this mode nbdkit does not fork into the +background (ie. I<-f> is implied). =head2 Using socket activation with systemd @@ -50,6 +52,25 @@ For more information on systemd and socket activation, see L<http://0pointer.de/blog/projects/socket-activation.html> +=head2 Using socket activation with libnbd + +L<libnbd(3)> L<nbd_connect_systemd_socket_activation(3)> lets you run +nbdkit from a program using libnbd. An example is: + + struct nbd_handle *nbd = nbd_create (); + if (nbd == NULL) { + fprintf (stderr, "%s\n", nbd_get_error ()); + exit (EXIT_FAILURE); + } + char *argv[] = { + "nbdkit", "--exit-with-parent", "memory", "1G", NULL + }; + if (nbd_connect_systemd_socket_activation (nbd, + args) == -1) { + fprintf (stderr, "%s\n", nbd_get_error ()); + exit (EXIT_FAILURE); + } + =head1 INETD AND XINETD You can run nbdkit from L<inetd(8)> or L<xinetd(8)>. For inetd use: @@ -110,9 +131,8 @@ NBD as a virtual block device to a guest (which the guest sees as something like a SATA or virtio-scsi disk). With C<AF_VSOCK> the virtual machine sees a raw NBD socket which it can connect to by -opening an C<AF_VSOCK> connection. Only libnbd supports C<AF_VSOCK> -NBD client connections at the time of writing (2019). For more about -this protocol, see L<https://wiki.qemu.org/Features/VirtioVsock> +opening an C<AF_VSOCK> connection. For more about this protocol, see +L<https://wiki.qemu.org/Features/VirtioVsock> =head2 AF_VSOCK example @@ -172,6 +192,8 @@ L<syslog(3)>, L<rsyslogd(8)>, L<journalctl(1)>, +L<libnbd(3)>, +L<nbd_connect_systemd_socket_activation(3)>, L<nbdsh(1)>. =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.40.1/plugins/vddk/vddk.c new/nbdkit-1.40.2/plugins/vddk/vddk.c --- old/nbdkit-1.40.1/plugins/vddk/vddk.c 2024-07-29 14:28:36.000000000 +0200 +++ new/nbdkit-1.40.2/plugins/vddk/vddk.c 2024-08-24 09:46:41.000000000 +0200 @@ -51,6 +51,7 @@ #include "array-size.h" #include "cleanup.h" +#include "isaligned.h" #include "minmax.h" #include "vector.h" @@ -203,9 +204,9 @@ r64 = nbdkit_parse_size (value); if (r64 == -1) return -1; - if (r64 <= 0 || (r64 & 511) != 0) { - nbdkit_error ("create-size must be greater than zero and a multiple of " - "512"); + if (r64 <= 0 || !IS_ALIGNED (r64, VIXDISKLIB_SECTOR_SIZE)) { + nbdkit_error ("create-size must be greater than zero " + "and a multiple of %d", VIXDISKLIB_SECTOR_SIZE); return -1; } create_size = r64; @@ -481,6 +482,18 @@ vddk_get_ready (void) { load_library (true); + +#ifdef __linux__ + /* Check for possible VDDK crash if /sys/class/scsi_disk is missing. */ + if (library_version >= 8 && + /* snapshot_moref && XXX unclear if necessary to trigger the bug */ + !transport_modes && + access ("/sys/class/scsi_disk", F_OK) == -1) + nbdkit_debug ("if nbdkit crashes when you open a connection, " + "read this link for workarounds: " + "https://issues.redhat.com/browse/RHEL-54377"); +#endif + return 0; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbdkit-1.40.1/tests/dummy-vddk.c new/nbdkit-1.40.2/tests/dummy-vddk.c --- old/nbdkit-1.40.1/tests/dummy-vddk.c 2024-07-29 14:28:36.000000000 +0200 +++ new/nbdkit-1.40.2/tests/dummy-vddk.c 2024-08-24 09:46:41.000000000 +0200 @@ -93,7 +93,9 @@ NBDKIT_DLL_PUBLIC void VixDiskLib_Exit (void) { - /* Do nothing. */ + /* Stop the background thread. */ + pthread_cancel (thread); + pthread_join (thread, NULL); } NBDKIT_DLL_PUBLIC char *