aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2023-09-11 11:46:01 +0200
committerKevin Wolf <kwolf@redhat.com>2023-09-20 17:46:00 +0200
commit01e28f6006e689fc4d0ce0f7246ce1e5cbdef758 (patch)
tree1a4b46abbcca7dcee4625482b3b19db60b3042a9 /linux-user
parent7210448edc0fee5163f31789024556b226dec647 (diff)
downloadqemu-01e28f6006e689fc4d0ce0f7246ce1e5cbdef758.zip
qemu-01e28f6006e689fc4d0ce0f7246ce1e5cbdef758.tar.gz
qemu-01e28f6006e689fc4d0ce0f7246ce1e5cbdef758.tar.bz2
preallocate: Factor out preallocate_truncate_to_real_size()
It's essentially the same code in preallocate_check_perm() and preallocate_close(), except that the latter ignores errors. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-ID: <20230911094620.45040-3-kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions