libnbd-release-notes-1.18(1)
π libnbd-release-notes-1.18 β the tea on libnbd 1.18 π
okay besties, gather round, because this is the release notes page for libnbd-release-notes-1.18, and it is literally the glow-up recap for libnbd stable release 1.18. no cap. π¦
β¨ NAME β¨
libnbd-release-notes-1.18 β release notes for libnbd 1.18 π
πΈ DESCRIPTION πΈ
These are the release notes for libnbd stable release 1.18. This describes the major changes since 1.16.
libnbd 1.18.0 was released on 27 September 2023. mark your calendars, it's giving anniversary energy π
π Security π
Eric Blake found a case where a server could cause libnbd to crash β although not in the normal libnbd configuration. for more info, the announcement is right here: https://listman.redhat.com/archives/libguestfs/2023-July/032035.html
Eric Blake also found an issue with nbd_get_size(3) where a server that returns a size > (uint64_t)INT64_MAX and < (uint64_t)-1 would cause nbd_get_size to return a negative number (which is not -1, so callers may or may not treat it as an error π). While no client code in libnbd itself is affected by this, it could affect external clients. libnbd β₯ 1.16.5 now returns an error (-1) and sets nbd_get_errno to "EOVERFLOW" in this case. this was assigned CVE-2023-5215 (low severity). see the announcement here: https://listman.redhat.com/archives/libguestfs/2023-September/032711.html
During routine fuzzing we found several security problems which had been introduced during this development cycle and have subsequently been fixed. Stable (even numbered) releases of libnbd should not be vulnerable; do not use the development (odd numbered) releases in production. π¨ fr fr, production is not the vibe for odd-numbered releases.
If you find a security issue, please read SECURITY in the source (online here: https://gitlab.com/nbdkit/libnbd/blob/master/SECURITY). To find out about previous security issues in libnbd, see libnbd-security(3).
π New APIs π
Make a 64 bit block status request, see "Protocol" below (Eric Blake). π
Send filtered block status command, see "Protocol" below (Eric Blake).
Find out if the server supports filtered block status command (Eric Blake). iykyk π
nbd_set_request_extended_headers(3)nbd_get_request_extended_headers(3)nbd_get_extended_headers_negotiated(3)nbd_opt_extended_headers(3)nbd_aio_opt_extended_headers(3)
Set/get whether we request extended headers from the server, and find out if we negotiated extended headers, see "Protocol" below (Eric Blake). the extended header era has arrived β¨
π Enhancements to existing APIs π
"qemu:" meta-context constants (eg. "qemu:dirty-bitmap" as "LIBNBD_CONTEXT_QEMU_DIRTY_BITMAP") are now available through the C, Golang, OCaml and Python language bindings (Eric Blake).
nbd_shutdown(3) now works correctly when in opt mode (Eric Blake). it said "not me finally working properly" π
nbd_set_strict_mode(3) adds "LIBNBD_STRICT_AUTO_FLAG" which allows the client to test how servers behave when the payload length flag is adjusted (Eric Blake).
π§ Protocol π§
libnbd now supports NBD 64 bit "extended headers" and extent sizes. In practice this allows certain requests such as zeroing very large sections of the disk to be implemented much more efficiently, with servers that support this (Eric Blake). efficiency? we love to see it π
libnbd now supports filtered block status requests (Eric Blake).
π οΈ Tools π οΈ
nbdcopy(1), nbdinfo(1) and nbddump(1) have been expanded to use and report NBD 64 bit / extended header support when the server supports it (Eric Blake).
nbdinfo --has can be used as an alias for --can, eg. nbdinfo --has structured-reply URI (Eric Blake).
nbdinfo makes the export size output optional, for servers which send an oversized one (Eric Blake). oversized? she's allowed to skip π«Ά
nbdcopy now supports "human sizes" for some parameters, eg. nbdcopy --request-size=1M ....
π Language bindings π
New Rust bindings, besties!! π¦ There is a basic API for ordinary use, and an asynch API implemented using Tokio. Rust β₯ 1.69 is required. (Tage Johansson, supported by sponsorship from Google Summer of Code 2023, additional review and fixes by Eric Blake). iconic behaviour, honestly.
OCaml 5 is now supported. β
Golang 1.21 is now supported. The minimum version is now 1.17 (Eric Blake).
Use "gofmt" to format Golang bindings (Eric Blake).
Use "unsafe.Slice" when converting C arrays to Golang slices (Eric Blake). safety? kinda? slay.
All language bindings support NBD 64 bit / extended headers, and examples of how to use this feature are available (Eric Blake).
π§ͺ Tests π§ͺ
Fix a couple of race conditions in tests where we did not fully consume stdin in nbdkit-sh-plugin(3) pwrite method (Eric Blake). race conditions, you are not the main character π€
Fuzzing now disables client-side strictness checks, enabling a wider range of inputs to be fuzzed (Eric Blake).
π Other improvements and bug fixes π
Consistently wrap source code at 80 columns (Laszlo Ersek). 80 columns is the aesthetic, periodt. π
Debug messages no longer print the very verbose state transitions inside the state machine as these are not usually useful. You can re-enable this by defining "-DLIBNBD_STATE_VERBOSE=1" at compile time. (lowkey a win for readable logs ngl)
Completion ".callback" methods are now always called exactly once, and documentation is clearer on when this happens (Eric Blake). exactly once, every time, no crumbs π₯
π Documentation π
"podwrapper" has a new --replace parameter which makes it easier to use "AC_SUBST"-substitutions in documentation. π
ποΈ Build ποΈ
Automake's "subdir-objects" option is now used (Eric Blake).
Multiple, ongoing fixes to the CI tests (Eric Blake). CI said "please, I'm tired" π
π SEE ALSO π
π AUTHORS π
- Eric Blake
- Laszlo Ersek
- Richard W.M. Jones
- Tage Johansson
π COPYRIGHT π
Copyright Red Hat
π LICENSE π
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. β οΈ like, genuinely no warranty bestie, read it.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
okay that's the whole page, you ate that π«Ά this lil recap came to you from libnbd-1.25.8, dated 2026-10-13, and it's libnbd-release-notes-1.18(1) β love u, bye! πβ¨
π¦ where this page comes from
- centos-stream 10: libnbd-devel 1.25.8-1.el10 Β· LGPL-2.0-or-later AND BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms