block: Generic file creation fallback
commitfd17146cd93d1704cd96d7c2757b325fc7aac6fd
authorMax Reitz <mreitz@redhat.com>
Wed, 22 Jan 2020 16:45:29 +0000 (22 17:45 +0100)
committerMax Reitz <mreitz@redhat.com>
Thu, 20 Feb 2020 15:43:42 +0000 (20 16:43 +0100)
treed44ef6656da1e450af829eb168442665d8a59eb8
parent78c81a3f108870d325b0a39d88711366afe6f703
block: Generic file creation fallback

If a protocol driver does not support image creation, we can see whether
maybe the file exists already.  If so, just truncating it will be
sufficient.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200122164532.178040-3-mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block.c