Kevin Wolf 120bc742c0 luks: Turn another invalid assertion into check
Commit e39e959e fixed an invalid assertion in the .bdrv_length
implementation, but left a similar assertion in place for
.bdrv_truncate. Instead of crashing when the user requests a too large
image size, fail gracefully.

A file size of exactly INT64_MAX caused failure before, but is actually
legal.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2018-03-26 12:17:40 +02:00
..
2018-03-09 15:17:47 +01:00
2018-03-13 17:05:00 -04:00
2016-10-07 14:14:06 +02:00
2018-03-19 12:01:39 +01:00
2018-03-09 15:17:47 +01:00
2018-03-02 18:39:07 +01:00
2018-02-09 05:05:11 +01:00
2017-07-17 11:34:11 +08:00
2018-03-09 15:17:48 +01:00
2018-03-19 12:01:24 +01:00
2018-03-26 12:16:12 +02:00
2016-09-23 11:42:52 +08:00
2017-08-31 12:29:07 +02:00
2018-03-19 12:01:39 +01:00