From 3031815f982e365be50148564d47d7d5afab46e0 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 10 Oct 2016 17:10:43 +0200 Subject: s3/vfs: remove now unused is_offline/set_offline VFS functions The previous commit removed all callers of this, so lets remove it. Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Tue Oct 11 14:44:03 CEST 2016 on sn-devel-144 --- examples/VFS/skel_opaque.c | 19 ------------------- examples/VFS/skel_transparent.c | 17 ----------------- 2 files changed, 36 deletions(-) (limited to 'examples') diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index 81ce1848898..94795957fbd 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -860,21 +860,6 @@ static bool skel_aio_force(struct vfs_handle_struct *handle, return false; } -static bool skel_is_offline(struct vfs_handle_struct *handle, - const struct smb_filename *fname, - SMB_STRUCT_STAT *sbuf) -{ - errno = ENOSYS; - return false; -} - -static int skel_set_offline(struct vfs_handle_struct *handle, - const struct smb_filename *fname) -{ - errno = ENOSYS; - return -1; -} - /* VFS operations structure */ struct vfs_fn_pointers skel_opaque_fns = { @@ -1006,10 +991,6 @@ struct vfs_fn_pointers skel_opaque_fns = { /* aio operations */ .aio_force_fn = skel_aio_force, - - /* offline operations */ - .is_offline_fn = skel_is_offline, - .set_offline_fn = skel_set_offline }; static_decl_vfs; diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index 418ee24f97e..f60131257ae 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -985,19 +985,6 @@ static bool skel_aio_force(struct vfs_handle_struct *handle, return SMB_VFS_NEXT_AIO_FORCE(handle, fsp); } -static bool skel_is_offline(struct vfs_handle_struct *handle, - const struct smb_filename *fname, - SMB_STRUCT_STAT *sbuf) -{ - return SMB_VFS_NEXT_IS_OFFLINE(handle, fname, sbuf); -} - -static int skel_set_offline(struct vfs_handle_struct *handle, - const struct smb_filename *fname) -{ - return SMB_VFS_NEXT_SET_OFFLINE(handle, fname); -} - /* VFS operations structure */ struct vfs_fn_pointers skel_transparent_fns = { @@ -1129,10 +1116,6 @@ struct vfs_fn_pointers skel_transparent_fns = { /* aio operations */ .aio_force_fn = skel_aio_force, - - /* offline operations */ - .is_offline_fn = skel_is_offline, - .set_offline_fn = skel_set_offline }; static_decl_vfs; -- cgit v1.2.1