vfs_fruit: use fio in fruit_fallocate
authorRalph Boehme <slow@samba.org>
Thu, 8 Dec 2016 19:41:55 +0000 (20:41 +0100)
committerUri Simchoni <uri@samba.org>
Wed, 1 Mar 2017 23:32:22 +0000 (00:32 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12427

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
source3/modules/vfs_fruit.c

index d00dc156d298682e2804881d1426f1357c4bff03..6ca1d7bb5e4f1c105b2d465f4b121bdc12b6c4a2 100644 (file)
@@ -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);
        }