Antoine Damhet
bae127d4dc
file-posix: Handle EINVAL
fallocate return value
...
The `detect-zeroes=unmap` option may issue unaligned
`FALLOC_FL_PUNCH_HOLE` requests, raw block devices can (and will) return
`EINVAL`, qemu should then write the zeroes to the blockdev instead of
issuing an `IO_ERROR`.
The problem can be reprodced like this:
$ qemu-io -c 'write -P 0 42 1234' --image-opts driver=host_device,filename=/dev/loop0,detect-zeroes=unmap
write failed: Invalid argument
Signed-off-by: Antoine Damhet <antoine.damhet@blade-group.com>
Message-Id: <20200717135603.51180-1-antoine.damhet@blade-group.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2020-07-21 16:28:57 +02:00
..
2020-05-19 10:32:14 -05:00
2019-10-10 10:56:18 +02:00
2019-10-10 10:56:17 +02:00
2020-07-06 08:49:28 +02:00
2020-05-18 19:05:25 +02:00
2019-10-10 10:56:18 +02:00
2020-05-08 13:26:35 +02:00
2020-07-10 15:18:08 +02:00
2020-07-10 15:18:08 +02:00
2020-05-18 19:05:25 +02:00
2020-07-10 15:18:08 +02:00
2020-07-14 15:24:15 +02:00
2020-07-06 08:33:06 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2019-09-13 12:18:37 +02:00
2020-07-10 15:18:08 +02:00
2020-07-06 08:49:28 +02:00
2020-07-10 15:18:08 +02:00
2020-05-28 13:15:22 -05:00
2019-06-12 13:20:20 +02:00
2020-05-18 19:05:25 +02:00
2019-06-12 13:20:20 +02:00
2020-07-21 16:28:57 +02:00
2020-07-10 15:18:08 +02:00
2020-05-18 19:05:25 +02:00
2020-07-10 15:18:08 +02:00
2020-06-05 09:54:48 +01:00
2020-07-06 10:34:14 +02:00
2019-06-12 13:18:33 +02:00
2020-07-10 18:02:23 -04:00
2020-03-16 22:07:42 +01:00
2020-07-17 14:20:57 +02:00
2020-05-18 19:05:25 +02:00
2020-07-13 09:01:01 -05:00
2020-07-10 15:18:08 +02:00
2019-10-14 17:12:48 +02:00
2020-06-23 15:46:08 +01:00
2020-07-10 15:18:08 +02:00
2020-03-06 17:15:38 +01:00
2020-02-20 16:43:42 +01:00
2020-06-17 14:53:39 +02:00
2019-10-26 15:38:06 +02:00
2020-04-30 17:51:07 +02:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-05-13 14:20:31 +02:00
2020-07-14 15:18:59 +02:00
2020-05-28 13:16:16 -05:00
2020-07-14 15:18:59 +02:00
2020-07-10 15:18:08 +02:00
2020-07-06 10:34:14 +02:00
2020-07-10 15:18:08 +02:00
2020-07-10 15:18:08 +02:00
2020-07-10 15:18:08 +02:00
2020-07-10 15:18:08 +02:00
2020-07-14 15:18:59 +02:00
2019-12-18 08:43:19 +01:00
2020-07-10 15:18:08 +02:00
2020-07-14 15:18:59 +02:00
2020-07-10 15:18:08 +02:00
2020-07-10 15:18:08 +02:00
2020-07-17 14:20:57 +02:00
2020-07-10 15:18:08 +02:00
2019-06-12 13:20:20 +02:00
2020-04-30 17:51:07 +02:00
2020-07-10 15:18:08 +02:00
2020-07-14 15:18:59 +02:00
2020-07-10 15:18:08 +02:00
2020-07-10 15:18:08 +02:00
2019-06-12 13:18:33 +02:00