summaryrefslogtreecommitdiff
path: root/examples/VFS/skel_transparent.c
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2020-10-13 12:02:34 +0200
committerRalph Boehme <slow@samba.org>2020-12-16 09:08:32 +0000
commita55a2bfb9143002161ef119298891725c6d3c075 (patch)
tree301792026741546a59a5162b32794939fd7cc20c /examples/VFS/skel_transparent.c
parent3db25c1c9b3f0d5ec91905b068a0da3daa581e02 (diff)
downloadsamba-a55a2bfb9143002161ef119298891725c6d3c075.tar.gz
vfs: SMB_VFS_GET_COMPRESSION() -> SMB_VFS_FGET_COMPRESSION()
Now that handle based fdos_mode() is used everywhere we can be sure that we're also always getting a handle in SMB_VFS_GET_COMPRESSION() so we can now safely remove the path parameter. :) Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'examples/VFS/skel_transparent.c')
-rw-r--r--examples/VFS/skel_transparent.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index b83a67f3a7f..2680b4f3285 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -829,13 +829,12 @@ static NTSTATUS skel_offload_write_recv(struct vfs_handle_struct *handle,
return NT_STATUS_OK;
}
-static NTSTATUS skel_get_compression(struct vfs_handle_struct *handle,
+static NTSTATUS skel_fget_compression(struct vfs_handle_struct *handle,
TALLOC_CTX *mem_ctx,
struct files_struct *fsp,
- struct smb_filename *smb_fname,
uint16_t *_compression_fmt)
{
- return SMB_VFS_NEXT_GET_COMPRESSION(handle, mem_ctx, fsp, smb_fname,
+ return SMB_VFS_NEXT_FGET_COMPRESSION(handle, mem_ctx, fsp,
_compression_fmt);
}
@@ -1411,7 +1410,7 @@ static struct vfs_fn_pointers skel_transparent_fns = {
.offload_read_recv_fn = skel_offload_read_recv,
.offload_write_send_fn = skel_offload_write_send,
.offload_write_recv_fn = skel_offload_write_recv,
- .get_compression_fn = skel_get_compression,
+ .fget_compression_fn = skel_fget_compression,
.set_compression_fn = skel_set_compression,
.streaminfo_fn = skel_streaminfo,