Bug 645

Summary: allow to build nbd-server with NBD package
Product: buildroot Reporter: Vincent Palatin <vincent.palatin_buildroot>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: enhancement CC: buildroot
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: nbd-server binary build

Description Vincent Palatin 2009-10-02 13:18:04 UTC
Created attachment 681 [details]
nbd-server binary build

At the moment, the NBD package can only build the "nbd-client" binary.
The attached patch adds the ability to build "nbd-server" binary (ie the userspace daemon used to serve block to a remote client)
it can activate client, server or both.

It includes 2 patches for nbd-server source code :
- remove SUSv3 deprecated function "index()"
- fix read function usage when -EAGAIN occurs (same fix as in nbd-server debian package)

I have tested this on an ARM target.
Comment 1 Peter Korsgaard 2009-11-22 20:19:17 UTC
Thanks, committed to git with minor kconfig tweaks (6aac003ab)