Added .INCOMPLETE hack to aid with marking finished transfers.

This commit is contained in:
Matthew Bloch
2012-05-29 11:24:24 +01:00
parent ab0dfb5eca
commit 21ccd17ea5
4 changed files with 15 additions and 4 deletions

View File

@@ -43,9 +43,9 @@ void read_reply(int fd, struct nbd_request *request, struct nbd_reply *reply)
SERVER_ERROR_ON_FAILURE(readloop(fd, reply, sizeof(*reply)),
"Couldn't read reply");
if (be32toh(reply->magic) != REPLY_MAGIC)
SERVER_ERROR("Reply magic incorrect (%p)", reply->magic);
SERVER_ERROR("Reply magic incorrect (%p)", be32toh(reply->magic));
if (be32toh(reply->error) != 0)
SERVER_ERROR("Server replied with error %d", reply->error);
SERVER_ERROR("Server replied with error %d", be32toh(reply->error));
if (strncmp(request->handle, reply->handle, 8) != 0)
SERVER_ERROR("Did not reply with correct handle");
}