Fix handling of oversized requests
authorWouter Verhelst <w@uter.be>
Fri, 28 Jan 2011 12:19:30 +0000 (13:19 +0100)
committerWouter Verhelst <w@uter.be>
Fri, 28 Jan 2011 12:21:32 +0000 (13:21 +0100)
commitc6efc78b2882500d1a2fd6581e7040063d5fceb5
tree8311e257b3a6282b4a086eee13a5032113670055
parent3ef52043861ab16352d49af89e048ba6339d6df8
Fix handling of oversized requests

Previously, nbd-server would not serve requests that were over 1MB in
size. This was a problem, and even a bug since the kernel does send such
requests.

Modify the server so that it loops if the request is larger than 1MB.
nbd-server.c