summaryrefslogtreecommitdiff
path: root/examples/VFS
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-09-18 10:04:03 -0700
committerRalph Boehme <slow@samba.org>2019-09-26 18:40:53 +0000
commit1ec030398bdc6f912d9beb3bcd0db7860a92eede (patch)
tree4642b90f10bff7f7ced9c2a9102a72446d1b0714 /examples/VFS
parentf7f09377919cf39ccc803556b42b024874a92a2b (diff)
downloadsamba-1ec030398bdc6f912d9beb3bcd0db7860a92eede.tar.gz
s3: VFS: Complete the replacement of SMB_VFS_UNLINK() -> SMB_VFS_UNLINKAT().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Thu Sep 26 18:40:53 UTC 2019 on sn-devel-184
Diffstat (limited to 'examples/VFS')
-rw-r--r--examples/VFS/skel_opaque.c8
-rw-r--r--examples/VFS/skel_transparent.c7
2 files changed, 0 insertions, 15 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c
index 2695b82ab45..59804675c8e 100644
--- a/examples/VFS/skel_opaque.c
+++ b/examples/VFS/skel_opaque.c
@@ -344,13 +344,6 @@ static uint64_t skel_get_alloc_size(struct vfs_handle_struct *handle,
return -1;
}
-static int skel_unlink(vfs_handle_struct *handle,
- const struct smb_filename *smb_fname)
-{
- errno = ENOSYS;
- return -1;
-}
-
static int skel_unlinkat(vfs_handle_struct *handle,
struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
@@ -1085,7 +1078,6 @@ static struct vfs_fn_pointers skel_opaque_fns = {
.fstat_fn = skel_fstat,
.lstat_fn = skel_lstat,
.get_alloc_size_fn = skel_get_alloc_size,
- .unlink_fn = skel_unlink,
.unlinkat_fn = skel_unlinkat,
.chmod_fn = skel_chmod,
.fchmod_fn = skel_fchmod,
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index f760730400b..c73c2a2692b 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -462,12 +462,6 @@ static uint64_t skel_get_alloc_size(struct vfs_handle_struct *handle,
return SMB_VFS_NEXT_GET_ALLOC_SIZE(handle, fsp, sbuf);
}
-static int skel_unlink(vfs_handle_struct *handle,
- const struct smb_filename *smb_fname)
-{
- return SMB_VFS_NEXT_UNLINK(handle, smb_fname);
-}
-
static int skel_unlinkat(vfs_handle_struct *handle,
struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
@@ -1372,7 +1366,6 @@ static struct vfs_fn_pointers skel_transparent_fns = {
.fstat_fn = skel_fstat,
.lstat_fn = skel_lstat,
.get_alloc_size_fn = skel_get_alloc_size,
- .unlink_fn = skel_unlink,
.unlinkat_fn = skel_unlinkat,
.chmod_fn = skel_chmod,
.fchmod_fn = skel_fchmod,