diff options
author | Holger Hetterich <hhetter@novell.com> | 2010-01-21 22:31:09 +0100 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2010-03-16 09:52:09 -0400 |
commit | 8cb5bac9ee96321c982038cb5dc951f6c2856d8c (patch) | |
tree | f18e562b9aa09fb39267c725db93736793aa5097 | |
parent | 541fb436cc3d69c154dcd90d2e6b22c273baa501 (diff) | |
download | samba-8cb5bac9ee96321c982038cb5dc951f6c2856d8c.tar.gz samba-8cb5bac9ee96321c982038cb5dc951f6c2856d8c.tar.bz2 samba-8cb5bac9ee96321c982038cb5dc951f6c2856d8c.zip |
Add read,pread,write,pwrite support to the V2 protocol.
-rw-r--r-- | source3/modules/vfs_smb_traffic_analyzer.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/source3/modules/vfs_smb_traffic_analyzer.c b/source3/modules/vfs_smb_traffic_analyzer.c index 68a4991e0f..6155c7e7c7 100644 --- a/source3/modules/vfs_smb_traffic_analyzer.c +++ b/source3/modules/vfs_smb_traffic_analyzer.c @@ -66,12 +66,12 @@ typedef struct chdir_data { const char *path; int result; } t_chdir; - + /* rw_data used for read/write/pread/pwrite */ -struct rw_data { +typedef struct rw_data { char *filename; size_t len; -}; +} t_rw; static int vfs_smb_traffic_analyzer_debug_level = DBGC_VFS; @@ -380,6 +380,17 @@ static void smb_traffic_analyzer_send_data(vfs_handle_struct *handle, talloc_asprintf(talloc_tos(), "%u", \ ((t_chdir *) data)->result)); break; + + case vfs_id_write: + case vfs_id_pwrite: + case vfs_id_read: + case vfs_id_pread: ; + str = smb_traffic_analyzer_create_string( tm, \ + seconds, handle, username, \ + 2, ((t_rw *) data)->filename, \ + talloc_asprintf(talloc_tos(), "%u", \ + ((t_rw *) data)->len)); + break; default: DEBUG(1, ("smb_traffic_analyzer: error! " "wrong VFS operation id detected!\n")); |