Bug 645 - allow to build nbd-server with NBD package
Summary: allow to build nbd-server with NBD package
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P3 enhancement
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-02 13:18 UTC by Vincent Palatin
Modified: 2009-11-22 20:19 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
nbd-server binary build (3.40 KB, patch)
2009-10-02 13:18 UTC, Vincent Palatin
Details

Note You need to log in before you can comment on or make changes to this bug.
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)