From b3c0f785d753b26404f67acf8061be1cafde79a9 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 8 Dec 2016 20:41:55 +0100 Subject: [PATCH] vfs_fruit: use fio in fruit_fallocate BUG: https://bugzilla.samba.org/show_bug.cgi?id=12427 Signed-off-by: Ralph Boehme Reviewed-by: Uri Simchoni --- source3/modules/vfs_fruit.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index d00dc156d29..6ca1d7bb5e4 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -4659,10 +4659,9 @@ static int fruit_fallocate(struct vfs_handle_struct *handle, off_t offset, off_t len) { - struct adouble *ad = - (struct adouble *)VFS_FETCH_FSP_EXTENSION(handle, fsp); + struct fio *fio = (struct fio *)VFS_FETCH_FSP_EXTENSION(handle, fsp); - if (ad == NULL) { + if (fio == NULL) { return SMB_VFS_NEXT_FALLOCATE(handle, fsp, mode, offset, len); } -- 2.34.1