commit | f3a33f795cc7a3372d2372480d34f6b95a3b09b6 | [log] [tgz] |
---|---|---|
author | Max Reitz <mreitz@redhat.com> | Tue Feb 13 14:03:52 2018 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Tue Feb 13 16:18:33 2018 +0100 |
tree | 5bc36faeb9c3df38293e32ec8920a764e9c02f47 | |
parent | 36e87909f8f324a7c442444e5cc02cc5efcdf360 [diff] |
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>