Skip to content

Nbd: update to 3.27.1#59515

Open
vincele wants to merge 4 commits into
void-linux:masterfrom
vincele:nbd
Open

Nbd: update to 3.27.1#59515
vincele wants to merge 4 commits into
void-linux:masterfrom
vincele:nbd

Conversation

@vincele

@vincele vincele commented Mar 22, 2026

Copy link
Copy Markdown
Contributor

And assorted changes:

  • runit config tweaks
  • project hosting moved to git
  • added dependencies (libnl3, gnutls)
  • removed CFLAGS addition
  • building fixes (1x warning & 1x error)
  • added check dependency: which

I separated the runit tweaks in their own commit, is that useful or should I squash everything together ?

Testing the changes

  • I tested the changes in this PR: briefly

Tested localhost self- export & mount from void x86_64-musl.
Tested mounting on openwrt 25.12.1 (mipsel_24kc) from the x86_64-musl host exports.
Of two different file-based exports, one simple, the other with templated name.
Also tested a real block device (a partition from a SATA SSD drive) exported from the nbd-server on the OpenWRT host and mounted to the x86_64-musl void one.

OpenWRT has different versions:

  • nbd-3.25-r2
  • kmod-nbd-6.12.74-r1

All tests ran properly.

Local build testing

  • I built this PR locally for my native architecture, (x86_64-musl)
  • I built this PR locally for these architectures (if supported. mark crossbuilds):
    • aarch64 (crossbuild)
    • riscv64-musl (crossbuild)

CI Build failure log analysis

The i686 failure is in the check phase, one of the tests FAIL'ed.
with:

[...]
2026-03-22T17:55:26.1782013Z 5052: Requests: 2718
2026-03-22T17:55:26.1786510Z 5052: Requests: 2719
2026-03-22T17:55:26.1787514Z ** (process:5052): WARNING **: 17:55:26.177: Could not run test: Could not write to socket: Broken pipe
2026-03-22T17:55:26.1878169Z FAIL: tree

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

@github-actions github-actions Bot added the Stale label Jul 1, 2026
vincele added 2 commits July 1, 2026 20:51
- new version
- move from sourceforge to github
- add gnutls library

-  fix compilation warning, by removing CFLAGS addition:
```
    <command-line>: warning: "PROG_NAME" redefined
    <command-line>: note: this is the location of the previous definition
```

- fix compilation by adding libnl3 which is detected by configure script
  and defines macros modifying the code. Error was:
```
    nbd-client.c: In function 'main':
    nbd-client.c:1723:32: error: implicit declaration of function
    'persist_mode_main' [-Wimplicit-function-declaration]
     1723 |                         return persist_mode_main(index,
            sockfds, flags);
          |                                ^~~~~~~~~~~~~~~~~
```

NETLINK-related compilation problem reported upstream, with a proposed fix:
NetworkBlockDevice/nbd#183
- allow forking worker pool, parent process should still stay in the foreground
- no need to re-redirect stderr a second time
@vincele vincele changed the title Nbd: update to 3.27.0 Nbd: update to 3.27.1 Jul 2, 2026
- use the tagged archive
- autoreconf
- add required build dependencies
- avoid the need for git at build time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant