summaryrefslogtreecommitdiff
path: root/source3/modules/onefs_streams.c
diff options
context:
space:
mode:
authortodd stecher <todd.stecher@gmail.com>2009-02-23 10:24:33 -0800
committerSteven Danneman <steven.danneman@isilon.com>2009-02-24 15:53:01 -0800
commit95bf60b39d003bea6f9f5ad2bc63d5f2a8b8b2af (patch)
tree4c269301795e160248721cb47d038f040c3837b0 /source3/modules/onefs_streams.c
parent503d15e8df9075ea9cf8b2d260487e68fc68f559 (diff)
downloadsamba-95bf60b39d003bea6f9f5ad2bc63d5f2a8b8b2af.tar.gz
samba-95bf60b39d003bea6f9f5ad2bc63d5f2a8b8b2af.tar.bz2
samba-95bf60b39d003bea6f9f5ad2bc63d5f2a8b8b2af.zip
S3: Add in profile counters for new vfs and syscall entries.
Diffstat (limited to 'source3/modules/onefs_streams.c')
-rw-r--r--source3/modules/onefs_streams.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/source3/modules/onefs_streams.c b/source3/modules/onefs_streams.c
index 9616ca48d5..2dcd8891eb 100644
--- a/source3/modules/onefs_streams.c
+++ b/source3/modules/onefs_streams.c
@@ -160,18 +160,26 @@ int onefs_rename(vfs_handle_struct *handle, const char *oldname,
char *nbase = NULL;
char *nsname = NULL;
+ START_PROFILE(syscall_rename_at);
+
frame = talloc_stackframe();
ret = onefs_is_stream(oldname, &obase, &osname, &old_is_stream);
- if (ret)
+ if (ret) {
+ END_PROFILE(syscall_rename_at);
return ret;
+ }
ret = onefs_is_stream(newname, &nbase, &nsname, &new_is_stream);
- if (ret)
+ if (ret) {
+ END_PROFILE(syscall_rename_at);
return ret;
+ }
if (!old_is_stream && !new_is_stream) {
- return SMB_VFS_NEXT_RENAME(handle, oldname, newname);
+ ret = SMB_VFS_NEXT_RENAME(handle, oldname, newname);
+ END_PROFILE(syscall_rename_at);
+ return ret;
}
dir_fd = get_stream_dir_fd(handle->conn, obase, NULL);
@@ -192,6 +200,8 @@ int onefs_rename(vfs_handle_struct *handle, const char *oldname,
}
done:
+ END_PROFILE(syscall_rename_at);
+
saved_errno = errno;
if (dir_fd >= 0) {
close(dir_fd);