From: Jeremy Allison Date: Mon, 22 Mar 2021 18:20:07 +0000 (-0700) Subject: s3: VFS: ceph_snapshots: Remove ceph_snap_gmt_removexattr(). No longer called. X-Git-Tag: tevent-0.11.0~1272 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=469e7dc236c79ae48535daeab9ec775b58994f3d;p=thirdparty%2Fsamba.git s3: VFS: ceph_snapshots: Remove ceph_snap_gmt_removexattr(). No longer called. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_ceph_snapshots.c b/source3/modules/vfs_ceph_snapshots.c index 3211c1c7dce..7b2307b19ee 100644 --- a/source3/modules/vfs_ceph_snapshots.c +++ b/source3/modules/vfs_ceph_snapshots.c @@ -1298,27 +1298,6 @@ static ssize_t ceph_snap_gmt_getxattr(vfs_handle_struct *handle, return ret; } -static int ceph_snap_gmt_removexattr(vfs_handle_struct *handle, - const struct smb_filename *csmb_fname, - const char *aname) -{ - time_t timestamp = 0; - int ret; - - ret = ceph_snap_gmt_strip_snapshot(handle, - csmb_fname, - ×tamp, NULL, 0); - if (ret < 0) { - errno = -ret; - return -1; - } - if (timestamp != 0) { - errno = EROFS; - return -1; - } - return SMB_VFS_NEXT_REMOVEXATTR(handle, csmb_fname, aname); -} - static int ceph_snap_gmt_fsetxattr(struct vfs_handle_struct *handle, struct files_struct *fsp, const char *aname, const void *value, @@ -1492,7 +1471,6 @@ static struct vfs_fn_pointers ceph_snap_fns = { .getxattr_fn = ceph_snap_gmt_getxattr, .getxattrat_send_fn = vfs_not_implemented_getxattrat_send, .getxattrat_recv_fn = vfs_not_implemented_getxattrat_recv, - .removexattr_fn = ceph_snap_gmt_removexattr, .fsetxattr_fn = ceph_snap_gmt_fsetxattr, .chflags_fn = ceph_snap_gmt_chflags, .get_real_filename_fn = ceph_snap_gmt_get_real_filename,