summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2001-09-05 18:43:55 +0000
committerHerb Lewis <herb@samba.org>2001-09-05 18:43:55 +0000
commit75287280717bc1f1411d2084d3295fffb1ccb391 (patch)
treea4448d0967356f1a44336c4652d4f05ac4883d3a /source3/smbd
parentdff3c815e2837ee0421298e3da7698bd3e01e0a6 (diff)
downloadsamba-75287280717bc1f1411d2084d3295fffb1ccb391.tar.gz
samba-75287280717bc1f1411d2084d3295fffb1ccb391.tar.bz2
samba-75287280717bc1f1411d2084d3295fffb1ccb391.zip
merge profile data changes from 2.2
(This used to be commit c105859304e93297fa29f346e9cbd1af0c95048b)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/vfs-wrap.c42
1 files changed, 36 insertions, 6 deletions
diff --git a/source3/smbd/vfs-wrap.c b/source3/smbd/vfs-wrap.c
index 11ba30f909..eff72c1f10 100644
--- a/source3/smbd/vfs-wrap.c
+++ b/source3/smbd/vfs-wrap.c
@@ -591,30 +591,60 @@ int vfswrap_readlink(connection_struct *conn, const char *path, char *buf, size_
size_t vfswrap_fget_nt_acl(files_struct *fsp, int fd, SEC_DESC **ppdesc)
{
- return get_nt_acl(fsp, ppdesc);
+ size_t result;
+
+ START_PROFILE(fget_nt_acl);
+ result = get_nt_acl(fsp, ppdesc);
+ END_PROFILE(fget_nt_acl);
+ return result;
}
size_t vfswrap_get_nt_acl(files_struct *fsp, const char *name, SEC_DESC **ppdesc)
{
- return get_nt_acl(fsp, ppdesc);
+ size_t result;
+
+ START_PROFILE(get_nt_acl);
+ result = get_nt_acl(fsp, ppdesc);
+ END_PROFILE(get_nt_acl);
+ return result;
}
BOOL vfswrap_fset_nt_acl(files_struct *fsp, int fd, uint32 security_info_sent, SEC_DESC *psd)
{
- return set_nt_acl(fsp, security_info_sent, psd);
+ BOOL result;
+
+ START_PROFILE(fset_nt_acl);
+ result = set_nt_acl(fsp, security_info_sent, psd);
+ END_PROFILE(fset_nt_acl);
+ return result;
}
BOOL vfswrap_set_nt_acl(files_struct *fsp, const char *name, uint32 security_info_sent, SEC_DESC *psd)
{
- return set_nt_acl(fsp, security_info_sent, psd);
+ BOOL result;
+
+ START_PROFILE(set_nt_acl);
+ result = set_nt_acl(fsp, security_info_sent, psd);
+ END_PROFILE(set_nt_acl);
+ return result;
}
int vfswrap_chmod_acl(connection_struct *conn, const char *name, mode_t mode)
{
- return chmod_acl(name, mode);
+ int result;
+
+ START_PROFILE(chmod_acl);
+ result = chmod_acl(name, mode);
+ END_PROFILE(chmod_acl);
+ return result;
}
int vfswrap_fchmod_acl(files_struct *fsp, int fd, mode_t mode)
{
- return fchmod_acl(fd, mode);
+ int result;
+
+ START_PROFILE(fchmod_acl);
+ result = fchmod_acl(fd, mode);
+ END_PROFILE(fchmod_acl);
+ return result;
}