svn commit: samba r4244 - in branches/SAMBA_4_0/source/ntvfs/posix: .

tridge at samba.org tridge at samba.org
Fri Dec 17 05:03:57 GMT 2004


Author: tridge
Date: 2004-12-17 05:03:57 +0000 (Fri, 17 Dec 2004)
New Revision: 4244

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4244

Log:
add more calls to pvfs_xattr_unlink_hook() on file/dir create, to try to beat race
conditions in the tdb xattr backend


Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c	2004-12-17 04:51:23 UTC (rev 4243)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c	2004-12-17 05:03:57 UTC (rev 4244)
@@ -49,6 +49,8 @@
 		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 @@
 		return pvfs_map_errno(pvfs, errno);
 	}
 
+	pvfs_xattr_unlink_hook(pvfs, name->full_name);
+
 	return NT_STATUS_OK;
 }
 



More information about the samba-cvs mailing list