summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_ceph.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/modules/vfs_ceph.c')
-rw-r--r--source3/modules/vfs_ceph.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/modules/vfs_ceph.c b/source3/modules/vfs_ceph.c
index f73a1f65187..c68a98f97e8 100644
--- a/source3/modules/vfs_ceph.c
+++ b/source3/modules/vfs_ceph.c
@@ -1145,8 +1145,10 @@ static int strict_allocate_ftruncate(struct vfs_handle_struct *handle, files_str
return 0;
/* Shrink - just ftruncate. */
- if (pst->st_ex_size > len)
- return ftruncate(fsp->fh->fd, len);
+ if (pst->st_ex_size > len) {
+ ret = ceph_ftruncate(handle->data, fsp->fh->fd, len);
+ WRAP_RETURN(ret);
+ }
space_to_write = len - pst->st_ex_size;