]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
VFS: ceph_snapshot Remove SMB_VFS_CHFLAGS
authorNoel Power <noel.power@suse.com>
Fri, 11 Jun 2021 15:31:38 +0000 (16:31 +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_ceph_snapshots.c

index f8a8d5a00689cc223d6576a0d2d41bf8c6473cac..4e226b1d8a102b3a09a47ce9c951b66e4d01f20f 100644 (file)
@@ -1257,27 +1257,6 @@ static int ceph_snap_gmt_mkdirat(vfs_handle_struct *handle,
                        mode);
 }
 
-static int ceph_snap_gmt_chflags(vfs_handle_struct *handle,
-                               const struct smb_filename *csmb_fname,
-                               unsigned int flags)
-{
-       time_t timestamp = 0;
-       int ret;
-
-       ret = ceph_snap_gmt_strip_snapshot(handle,
-                                       csmb_fname,
-                                       &timestamp, NULL, 0);
-       if (ret < 0) {
-               errno = -ret;
-               return -1;
-       }
-       if (timestamp != 0) {
-               errno = EROFS;
-               return -1;
-       }
-       return SMB_VFS_NEXT_CHFLAGS(handle, csmb_fname, flags);
-}
-
 static int ceph_snap_gmt_fchflags(vfs_handle_struct *handle,
                                struct files_struct *fsp,
                                unsigned int flags)
@@ -1516,7 +1495,6 @@ static struct vfs_fn_pointers ceph_snap_fns = {
        .getxattrat_send_fn = vfs_not_implemented_getxattrat_send,
        .getxattrat_recv_fn = vfs_not_implemented_getxattrat_recv,
        .fsetxattr_fn = ceph_snap_gmt_fsetxattr,
-       .chflags_fn = ceph_snap_gmt_chflags,
        .fchflags_fn = ceph_snap_gmt_fchflags,
        .get_real_filename_fn = ceph_snap_gmt_get_real_filename,
 };