Oversize writes were not incrementing the seek location for writes. This could cause disk corruption.
Available from git.alex.org.uk as usual -- Alex Bligh Signed-off-by: Alex Bligh <[email protected]> --- nbd-server.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/nbd-server.c b/nbd-server.c index d57120b..41b847a 100644 --- a/nbd-server.c +++ b/nbd-server.c @@ -1576,6 +1576,7 @@ int mainloop(CLIENT *client) { continue; } len -= currlen; + request.from += currlen; currlen = (len < BUFSIZE) ? len : BUFSIZE; } SEND(client->net, reply); -- 1.7.4.1 ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ Nbd-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nbd-general
