* Write calls
@ 2004-06-23 11:35 Siddhartha Jain
2004-06-23 15:10 ` David Woodhouse
0 siblings, 1 reply; 5+ messages in thread
From: Siddhartha Jain @ 2004-06-23 11:35 UTC (permalink / raw)
To: Linux fs-devel
Hello,
Just want to confirm that the following are the only kernel functions that
are called to write to files(VFS):
- do_sync_write
- vfs_write (calls do_sync_write)
- sys_write (calls vfs_write)
- sys_pwrite64 (calls vfs_write)
- vfs_writev
- sys_writev
- do_readv_writev
Basically, I want to find out the all kernel functions thru which every
write call (not FS dependant) passes.
Disclaimer: I am newbie.
Thanks,
Siddhartha
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Write calls
2004-06-23 11:35 Write calls Siddhartha Jain
@ 2004-06-23 15:10 ` David Woodhouse
2004-06-23 15:30 ` Siddhartha Jain
0 siblings, 1 reply; 5+ messages in thread
From: David Woodhouse @ 2004-06-23 15:10 UTC (permalink / raw)
To: Siddhartha Jain; +Cc: Linux fs-devel
On Wed, 2004-06-23 at 17:05 +0530, Siddhartha Jain wrote:
> Basically, I want to find out the all kernel functions thru which every
> write call (not FS dependant) passes.
mmap?
--
dwmw2
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Write calls
2004-06-23 15:10 ` David Woodhouse
@ 2004-06-23 15:30 ` Siddhartha Jain
2004-06-23 16:47 ` Jamie Lokier
0 siblings, 1 reply; 5+ messages in thread
From: Siddhartha Jain @ 2004-06-23 15:30 UTC (permalink / raw)
To: Linux fs-devel
>
>On Wed, 2004-06-23 at 17:05 +0530, Siddhartha Jain wrote:
>> Basically, I want to find out the all kernel functions thru which every
>> write call (not FS dependant) passes.
>
>mmap?
>
>
I am sorry. To put it differently, if I wanted to *snoop* on all bytes
written to all/any files on the system, irrespective of the FS, what
functions would I need to modify in the kernel? The objective is to be able
to replicate directories.
Thanks,
Siddhartha
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Write calls
2004-06-23 15:30 ` Siddhartha Jain
@ 2004-06-23 16:47 ` Jamie Lokier
2004-06-24 9:10 ` Siddhartha Jain
0 siblings, 1 reply; 5+ messages in thread
From: Jamie Lokier @ 2004-06-23 16:47 UTC (permalink / raw)
To: Siddhartha Jain; +Cc: Linux fs-devel
Siddhartha Jain wrote:
> The objective is to be able to replicate directories.
There was a thread on linux-kernel about this recently.
Look for "COW files".
What you want to do is not trivial to do correctly.
mmap() and hard links both make it complicated.
Fortunately there was lots of good design in that thread, and we
figured out how to do it properly. It's just waiting for someone to
implement it properly :)
Meanwhile, a patch is already available which handles simpler cases.
-- Jamie
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Write calls
2004-06-23 16:47 ` Jamie Lokier
@ 2004-06-24 9:10 ` Siddhartha Jain
0 siblings, 0 replies; 5+ messages in thread
From: Siddhartha Jain @ 2004-06-24 9:10 UTC (permalink / raw)
To: Linux fs-devel
Thanks for the pointers Jamie.
Can someone tell me how are the functions in fs/read_write.c (do_sync_write,
vfs_write etc) related to functions like ioctl, mmap and aio_write.
In the layered structure, application -> vfs -> FS Layer -> Generic Block
device layer, what call belongs where?
Thanks,
Siddhartha
>-----Original Message-----
>From: linux-fsdevel-owner@vger.kernel.org
>[mailto:linux-fsdevel-owner@vger.kernel.org]On Behalf Of Jamie Lokier
>
>Siddhartha Jain wrote:
>> The objective is to be able to replicate directories.
>
>There was a thread on linux-kernel about this recently.
>Look for "COW files".
>
>What you want to do is not trivial to do correctly.
>mmap() and hard links both make it complicated.
>
>Fortunately there was lots of good design in that thread, and we
>figured out how to do it properly. It's just waiting for someone to
>implement it properly :)
>
>Meanwhile, a patch is already available which handles simpler cases.
>
>-- Jamie
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-06-24 9:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-23 11:35 Write calls Siddhartha Jain
2004-06-23 15:10 ` David Woodhouse
2004-06-23 15:30 ` Siddhartha Jain
2004-06-23 16:47 ` Jamie Lokier
2004-06-24 9:10 ` Siddhartha Jain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).