[prev in list] [next in list] [prev in thread] [next in thread]
List: samba-technical
Subject: RE: The Samba copy file call flow
From: GongJinrong <jinronggong () hotmail ! com>
Date: 2014-05-01 3:52:12
Message-ID: COL402-EAS30278261B4D0BC3EE8BF244B7400 () phx ! gbl
[Download RAW message or body]
Hi, Jeremy
I found that if I enable a vfs object(such as full_audit), I can see the
write_file() print log, but if I don't enable any VFS object, I cannot find
the file data write operations, can you tell me how samba store a file to
disk without VFS object? Where is the real file write code?
-----Original Message-----
From: samba-technical-bounces@lists.samba.org
[mailto:samba-technical-bounces@lists.samba.org] On Behalf Of GongJinrong
Sent: Thursday, May 01, 2014 9:42 AM
To: 'Jeremy Allison'
Cc: samba-technical@lists.samba.org
Subject: RE: The Samba copy file call flow
Hi, Jeremy
Thanks a lot, the guide is really useful, but I cannot see the
real_write_file() be called when I copy a file to linux shared directory,
which function will call the VFS routine? is the file data receiving routine
in the Tevent handler functions? sorry for so much question^^
-----Original Message-----
From: Jeremy Allison [mailto:jra@samba.org]
Sent: Thursday, May 01, 2014 7:27 AM
To: GongJinrong
Cc: samba-technical@lists.samba.org
Subject: Re: The Samba copy file call flow
On Thu, May 01, 2014 at 12:36:49AM +0800, GongJinrong wrote:
> I am learning the samba source code, it's really hard to understand
> the whole samba architecture, I don't find the detail call stack or
> call flow in samba when I do a file copying from win7 to a linux
> shared directory, I put some debug code to vfs_write_data() and
> real_write_file(), but I cannot see the debug print in the log file,
> can any nice guy tell me how the samba create file and write file data
> to disk, which low level file operation wrapper function will be
> called? Thanks a lot! I already spent a whole week, but got nothing!
Sorry you're having so much trouble. You can start from real_write_file() -
but notice it calls vfs_pwrite_data(), not vfs_write_data().
Feel free to ask specific questions
on the list. Richard Sharpe has a
good guide to the Samba VFS you
might want to read.
Keep at it - the more you read
the code the more you'll find a treasure trove of useful things :-). Talloc,
tevent, tdb, ctdb, pthreadpool, they're all here :-).
Jeremy.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic