block/file-posix: Extract raw_regular_truncate()
commit9f63b07ee7feefd5f5a1175614b6948264e9d7e0
authorMax Reitz <mreitz@redhat.com>
Tue, 13 Jun 2017 20:20:57 +0000 (13 22:20 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 11 Jul 2017 15:45:01 +0000 (11 17:45 +0200)
treee5887b779660ae4f7d6c0e777d7d071de97bc7e2
parent7dacd8bd3d1f7eeb1850d5ad8e1898e6d314889f
block/file-posix: Extract raw_regular_truncate()

This functionality is part of raw_create() which we will be able to
reuse nicely in raw_truncate().

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20170613202107.10125-7-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/file-posix.c