diff options
Diffstat (limited to 'block/gluster.c')
-rw-r--r-- | block/gluster.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/block/gluster.c b/block/gluster.c index be45c08b4c..1d4e2f7c52 100644 --- a/block/gluster.c +++ b/block/gluster.c @@ -1100,7 +1100,9 @@ static int qemu_gluster_truncate(BlockDriverState *bs, int64_t offset, ret = glfs_ftruncate(s->fd, offset); if (ret < 0) { - return -errno; + ret = -errno; + error_setg_errno(errp, -ret, "Failed to truncate file"); + return ret; } return 0; |