summaryrefslogtreecommitdiffstats
path: root/package/nbd/nbd-server-fix-read-eagain.patch
diff options
context:
space:
mode:
authorPeter Huewe <peterhuewe@gmx.de>2010-06-24 12:46:02 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-06-24 17:34:01 +0200
commit6074f08b8d39bcb3ccd5abf77bc262b7b9d739ca (patch)
tree45e99e754079cedea75fff215a67ed56afa9a379 /package/nbd/nbd-server-fix-read-eagain.patch
parent1b10ce7156036684126fac70cbbbf2db783f3b47 (diff)
downloadbuildroot-novena-6074f08b8d39bcb3ccd5abf77bc262b7b9d739ca.tar.gz
buildroot-novena-6074f08b8d39bcb3ccd5abf77bc262b7b9d739ca.zip
nbd: Bump nbd to version 2.9.15 and remove klcc issue.
This patch bumps the version of nbd to 2.9.15. The new version avoids problems with klcc installed on the host system and also includes two former buildroot patches: - nbd-fix-build-with-disable-lfs.patch - nbd-server-fix-read-eagain.patch Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/nbd/nbd-server-fix-read-eagain.patch')
-rw-r--r--package/nbd/nbd-server-fix-read-eagain.patch21
1 files changed, 0 insertions, 21 deletions
diff --git a/package/nbd/nbd-server-fix-read-eagain.patch b/package/nbd/nbd-server-fix-read-eagain.patch
deleted file mode 100644
index b1f966c77..000000000
--- a/package/nbd/nbd-server-fix-read-eagain.patch
+++ /dev/null
@@ -1,21 +0,0 @@
---- nbd-2.9.11.orig/nbd-server.c
-+++ nbd-2.9.11/nbd-server.c
-@@ -304,10 +304,14 @@
- ssize_t res;
- while (len > 0) {
- DEBUG("*");
-- if ((res = read(f, buf, len)) <= 0)
-- err("Read failed: %m");
-- len -= res;
-- buf += res;
-+ if ((res = read(f, buf, len)) <= 0) {
-+ if(errno != EAGAIN) {
-+ err("Read failed: %m");
-+ }
-+ } else {
-+ len -= res;
-+ buf += res;
-+ }
- }
- }
-