From bb0ce379f6553e962a0c0d6afa10391b7e53d7ba Mon Sep 17 00:00:00 2001 From: Eric Price Date: Mon, 1 Dec 2014 10:09:01 +0100 Subject: [PATCH] fixed typo --- nbd-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbd-server.c b/nbd-server.c index 7364910..84adda9 100644 --- a/nbd-server.c +++ b/nbd-server.c @@ -1376,7 +1376,7 @@ int exptrim(struct nbd_request* req, CLIENT* client) { return 0; off_t min= (req->from / TREEPAGESIZE) * TREEPAGESIZE; // start address of to be trimmed block - if (min!=req_from) + if (min!=req->from) min+=TREEPAGESIZE; // we shall not trim partially used blocks off_t max= ((req->from+req->len)/TREEPAGESIZE) * TREEPAGESIZE; // start address of first not to be trimmed block while (min