]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: xattr_tdb: Remove xattr_tdb_removexattr(). No longer called.
authorJeremy Allison <jra@samba.org>
Fri, 19 Mar 2021 21:04:22 +0000 (14:04 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 7 Apr 2021 16:26:28 +0000 (16:26 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_xattr_tdb.c

index bc233abd0a6b89b6d07cdbfcb85dffcab674ad94..d9854a0b83bd85cda6bc33611427ffb970fb586c 100644 (file)
@@ -341,33 +341,6 @@ static ssize_t xattr_tdb_flistxattr(struct vfs_handle_struct *handle,
        return ret;
 }
 
-static int xattr_tdb_removexattr(struct vfs_handle_struct *handle,
-                               const struct smb_filename *smb_fname,
-                               const char *name)
-{
-       struct file_id id;
-       struct db_context *db;
-       int ret;
-       TALLOC_CTX *frame = talloc_stackframe();
-
-       SMB_VFS_HANDLE_GET_DATA(handle, db, struct db_context,
-                               if (!xattr_tdb_init(-1, frame, &db))
-                               {
-                                       TALLOC_FREE(frame); return -1;
-                               });
-
-       ret = xattr_tdb_get_file_id(handle, smb_fname->base_name, &id);
-       if (ret == -1) {
-               TALLOC_FREE(frame);
-               return ret;
-       }
-
-       
-       ret = xattr_tdb_removeattr(db, &id, name);
-       TALLOC_FREE(frame);
-       return ret;
-}
-
 static int xattr_tdb_fremovexattr(struct vfs_handle_struct *handle,
                                  struct files_struct *fsp, const char *name)
 {
@@ -683,7 +656,6 @@ static struct vfs_fn_pointers vfs_xattr_tdb_fns = {
        .fgetxattr_fn = xattr_tdb_fgetxattr,
        .fsetxattr_fn = xattr_tdb_fsetxattr,
        .flistxattr_fn = xattr_tdb_flistxattr,
-       .removexattr_fn = xattr_tdb_removexattr,
        .fremovexattr_fn = xattr_tdb_fremovexattr,
        .openat_fn = xattr_tdb_openat,
        .mkdirat_fn = xattr_tdb_mkdirat,