linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* which  function  writes to the disk
@ 2003-03-05  7:25 Rajaram Suresh Gaunker
  2003-03-05 17:54 ` Jan Harkes
  0 siblings, 1 reply; 2+ messages in thread
From: Rajaram Suresh Gaunker @ 2003-03-05  7:25 UTC (permalink / raw)
  To: hbryan, kernelnewbies, linux-fsdevel

hi

which functions writes to the disk in file system?

how can i know which user wants to write to disk, or which user 
has called the system call?

user registers his key by using a system call which i'm 
providing
he can also unregister itself using a system call

the key for each user is stored in kernel when we are writing the 
data to file of user we will encrypt using owners key

plz comment on this

bye





R@j@r@m

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: which  function  writes to the disk
  2003-03-05  7:25 which function writes to the disk Rajaram Suresh Gaunker
@ 2003-03-05 17:54 ` Jan Harkes
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Harkes @ 2003-03-05 17:54 UTC (permalink / raw)
  To: Rajaram Suresh Gaunker; +Cc: kernelnewbies, linux-fsdevel

On Wed, Mar 05, 2003 at 07:25:13AM -0000, Rajaram Suresh Gaunker wrote:
> which functions writes to the disk in file system?
> 
> how can i know which user wants to write to disk, or which user 
> has called the system call?

That is a little difficult, last time I looked, writes were just marking
the memory page dirty. At some point there is this kernel flush daemon
that wanders by, notices that the page is dirty and kicks off the actual
IO.

In the mean time several users might have written to the same page
before IO has even started which makes it unclear which user has
permission to write. Will all valid writes fail if one user's
permissions have expired? Or will we allow an user's writes to
succeed just because he is piggybacking on the valid writers.

> user registers his key by using a system call which i'm 
> providing he can also unregister itself using a system call
> 
> the key for each user is stored in kernel when we are writing the 
> data to file of user we will encrypt using owners key

You might want to google for 'cryptfs', 'cfs', and 'tcfs'.

Jan


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-05 17:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-05  7:25 which function writes to the disk Rajaram Suresh Gaunker
2003-03-05 17:54 ` Jan Harkes

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).