block/nbd-client: drop max_block restriction from discardpull-nbd-2020-05-04
commit714eb0dbc5480c8a9d9f39eb931cb5d2acc1b6c6
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Wed, 1 Apr 2020 15:01:08 +0000 (1 18:01 +0300)
committerEric Blake <eblake@redhat.com>
Mon, 4 May 2020 20:16:46 +0000 (4 15:16 -0500)
tree7f630c78e11adb5f33b4ee130e820f424e23bb76
parent6bf792b4643bd88153b2d473f735f93638cac521
block/nbd-client: drop max_block restriction from discard

The NBD spec was updated (see nbd.git commit 9f30fedb) so that
max_block doesn't relate to NBD_CMD_TRIM. So, drop the restriction.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200401150112.9557-3-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: tweak commit message to call out NBD commit]
Signed-off-by: Eric Blake <eblake@redhat.com>
block/nbd.c