summary refs log tree commit diff stats
path: root/hw/ide/qdev.c
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2018-02-13 14:03:52 +0100
committerKevin Wolf <kwolf@redhat.com>2018-02-13 16:18:33 +0100
commitf3a33f795cc7a3372d2372480d34f6b95a3b09b6 (patch)
tree5bc36faeb9c3df38293e32ec8920a764e9c02f47 /hw/ide/qdev.c
parent36e87909f8f324a7c442444e5cc02cc5efcdf360 (diff)
downloadfocaccia-qemu-f3a33f795cc7a3372d2372480d34f6b95a3b09b6.tar.gz
focaccia-qemu-f3a33f795cc7a3372d2372480d34f6b95a3b09b6.zip
gluster: Query current size in do_truncate()
Instead of expecting the current size to be 0, query it and allocate
only the area [current_size, offset) if preallocation is requested.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/ide/qdev.c')
0 files changed, 0 insertions, 0 deletions