summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_snapper.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-08-21 13:54:02 -0700
committerJeremy Allison <jra@samba.org>2019-08-22 18:00:34 +0000
commit9ba187a5fc8d8e180245ee5741728322ff581103 (patch)
tree14d5dc5ba7b24d060dadc672d1d135bf40b65444 /source3/modules/vfs_snapper.c
parentb3fa9ccfdd4aacf13690060c5efbd606d26730f5 (diff)
downloadsamba-9ba187a5fc8d8e180245ee5741728322ff581103.tar.gz
s3: VFS: vfs_snapper. Remove mknod_fn(). No longer used.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
Diffstat (limited to 'source3/modules/vfs_snapper.c')
-rw-r--r--source3/modules/vfs_snapper.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/source3/modules/vfs_snapper.c b/source3/modules/vfs_snapper.c
index f13b69ab8d0..cb451ebdcd2 100644
--- a/source3/modules/vfs_snapper.c
+++ b/source3/modules/vfs_snapper.c
@@ -2381,25 +2381,6 @@ static int snapper_gmt_readlink(vfs_handle_struct *handle,
return ret;
}
-static int snapper_gmt_mknod(vfs_handle_struct *handle,
- const struct smb_filename *smb_fname,
- mode_t mode,
- SMB_DEV_T dev)
-{
- time_t timestamp = (time_t)0;
-
- if (!snapper_gmt_strip_snapshot(talloc_tos(), handle,
- smb_fname->base_name,
- &timestamp, NULL)) {
- return -1;
- }
- if (timestamp != 0) {
- errno = EROFS;
- return -1;
- }
- return SMB_VFS_NEXT_MKNOD(handle, smb_fname, mode, dev);
-}
-
static int snapper_gmt_mknodat(vfs_handle_struct *handle,
files_struct *dirfsp,
const struct smb_filename *smb_fname,
@@ -2905,7 +2886,6 @@ static struct vfs_fn_pointers snapper_fns = {
.chdir_fn = snapper_gmt_chdir,
.ntimes_fn = snapper_gmt_ntimes,
.readlink_fn = snapper_gmt_readlink,
- .mknod_fn = snapper_gmt_mknod,
.mknodat_fn = snapper_gmt_mknodat,
.realpath_fn = snapper_gmt_realpath,
.get_nt_acl_fn = snapper_gmt_get_nt_acl,