diff options
author | Max Reitz <mreitz@redhat.com> | 2018-02-13 14:03:52 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-02-13 16:18:33 +0100 |
commit | f3a33f795cc7a3372d2372480d34f6b95a3b09b6 (patch) | |
tree | 5bc36faeb9c3df38293e32ec8920a764e9c02f47 /scripts/qapi-introspect.py | |
parent | 36e87909f8f324a7c442444e5cc02cc5efcdf360 (diff) | |
download | qemu-f3a33f795cc7a3372d2372480d34f6b95a3b09b6.zip qemu-f3a33f795cc7a3372d2372480d34f6b95a3b09b6.tar.gz qemu-f3a33f795cc7a3372d2372480d34f6b95a3b09b6.tar.bz2 |
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 'scripts/qapi-introspect.py')
0 files changed, 0 insertions, 0 deletions