diff options
author | Jeremy Allison <jra@samba.org> | 2019-10-04 13:53:13 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-10-10 06:09:40 +0000 |
commit | 305f2b8d01c5e9ecaa599372f75656169e777c7f (patch) | |
tree | 565605cb1deb21834d51e4b701a699bebdfe146c /source3 | |
parent | 4ce152f1c43a2eb5c96da2f24b3829e4118774e2 (diff) | |
download | samba-305f2b8d01c5e9ecaa599372f75656169e777c7f.tar.gz |
s3: VFS: vfs_xattr_tdb: Remove rmdir_fn. No longer used.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_xattr_tdb.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c index 1d97770e0b6..c87be90f940 100644 --- a/source3/modules/vfs_xattr_tdb.c +++ b/source3/modules/vfs_xattr_tdb.c @@ -660,46 +660,6 @@ static int xattr_tdb_unlinkat(vfs_handle_struct *handle, } /* - * 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, }; |