]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_xattr_tdb: Remove rmdir_fn. No longer used.
authorJeremy Allison <jra@samba.org>
Fri, 4 Oct 2019 20:53:13 +0000 (13:53 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 10 Oct 2019 06:09:40 +0000 (06:09 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_xattr_tdb.c

index 1d97770e0b6fcee54b49eb52ad298c0b13d5be22..c87be90f940694ef4a02763c56dff4a67c3b3012 100644 (file)
@@ -659,46 +659,6 @@ static int xattr_tdb_unlinkat(vfs_handle_struct *handle,
        return ret;
 }
 
-/*
- * On rmdir we need to delete the tdb record
- */
-static int xattr_tdb_rmdir(vfs_handle_struct *handle,
-                       const struct smb_filename *smb_fname)
-{
-       SMB_STRUCT_STAT sbuf;
-       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;
-                               });
-
-       if (vfs_stat_smb_basename(handle->conn,
-                               smb_fname,
-                               &sbuf) == -1) {
-               TALLOC_FREE(frame);
-               return -1;
-       }
-
-       ret = SMB_VFS_NEXT_RMDIR(handle, smb_fname);
-
-       if (ret == -1) {
-               TALLOC_FREE(frame);
-               return -1;
-       }
-
-       id = SMB_VFS_NEXT_FILE_ID_CREATE(handle, &sbuf);
-
-       xattr_tdb_remove_all_attrs(db, &id);
-
-       TALLOC_FREE(frame);
-       return 0;
-}
-
 /*
  * Destructor for the VFS private data
  */
@@ -757,7 +717,6 @@ static struct vfs_fn_pointers vfs_xattr_tdb_fns = {
        .open_fn = xattr_tdb_open,
        .mkdirat_fn = xattr_tdb_mkdirat,
        .unlinkat_fn = xattr_tdb_unlinkat,
-       .rmdir_fn = xattr_tdb_rmdir,
        .connect_fn = xattr_tdb_connect,
 };