]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
VFS: snapper: Remove SMB_VFS_CHFLAGS
authorNoel Power <noel.power@suse.com>
Fri, 11 Jun 2021 15:33:30 +0000 (16:33 +0100)
committerNoel Power <npower@samba.org>
Tue, 29 Jun 2021 08:21:38 +0000 (08:21 +0000)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_snapper.c

index ba27a12367cd31896a9e7abac9d1c6acb1fe64c1..ad69585323351d450ccdfc4009ab061fc101a54d 100644 (file)
@@ -2391,23 +2391,6 @@ static int snapper_gmt_mkdirat(vfs_handle_struct *handle,
                        mode);
 }
 
-static int snapper_gmt_chflags(vfs_handle_struct *handle,
-                               const struct smb_filename *smb_fname,
-                               unsigned int flags)
-{
-       time_t timestamp = 0;
-
-       if (!snapper_gmt_strip_snapshot(talloc_tos(), handle,
-                               smb_fname, &timestamp, NULL)) {
-               return -1;
-       }
-       if (timestamp != 0) {
-               errno = EROFS;
-               return -1;
-       }
-       return SMB_VFS_NEXT_CHFLAGS(handle, smb_fname, flags);
-}
-
 static int snapper_gmt_fchflags(vfs_handle_struct *handle,
                                struct files_struct *fsp,
                                unsigned int flags)
@@ -2702,7 +2685,6 @@ static struct vfs_fn_pointers snapper_fns = {
        .getxattrat_send_fn = vfs_not_implemented_getxattrat_send,
        .getxattrat_recv_fn = vfs_not_implemented_getxattrat_recv,
        .fsetxattr_fn = snapper_gmt_fsetxattr,
-       .chflags_fn = snapper_gmt_chflags,
        .fchflags_fn = snapper_gmt_fchflags,
        .get_real_filename_fn = snapper_gmt_get_real_filename,
 };