r4244: add more calls to pvfs_xattr_unlink_hook() on file/dir create, to try to beat...
authorAndrew Tridgell <tridge@samba.org>
Fri, 17 Dec 2004 05:03:57 +0000 (05:03 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:07:28 +0000 (13:07 -0500)
conditions in the tdb xattr backend
(This used to be commit 3ac840159881ce6eeac27ff0dc324e4d6ac0a70a)

source4/ntvfs/posix/pvfs_mkdir.c

index 549f4b9780cfeba55c76cb8117a55392b9bd9f12..c4c03f3ad4807a066185ff3a5077d5dc75e4e471 100644 (file)
@@ -49,6 +49,8 @@ static NTSTATUS pvfs_t2mkdir(struct pvfs_state *pvfs,
                return pvfs_map_errno(pvfs, errno);
        }
 
+       pvfs_xattr_unlink_hook(pvfs, name->full_name);
+
        status = pvfs_resolve_name(pvfs, req, md->t2mkdir.in.path, 0, &name);
        if (!NT_STATUS_IS_OK(status)) {
                return status;
@@ -105,6 +107,8 @@ NTSTATUS pvfs_mkdir(struct ntvfs_module_context *ntvfs,
                return pvfs_map_errno(pvfs, errno);
        }
 
+       pvfs_xattr_unlink_hook(pvfs, name->full_name);
+
        return NT_STATUS_OK;
 }