linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* readdir in client/server Environment
@ 2006-04-20  5:30 UZAIR LAKHANI
  2006-04-26  5:21 ` Jan Hudec
  0 siblings, 1 reply; 2+ messages in thread
From: UZAIR LAKHANI @ 2006-04-20  5:30 UTC (permalink / raw)
  To: linux-fsdevel

Hello All,

I want to find out the internal workings of the file
operations member readdir. Specially the arguments it
received. What is 

the purpose of the file pointer, what is dirent (void
ptr) for. Do the void ptr i.e. dirent has something
when called. Do 

the filldir function fills the dirent etc. I am asking
this because I am working in a client/server
environment. The client 

will get the request for readdir but the actual
storage and directories are on server so what the
client will have to pass 

to the server to have its request fulfilled.

On the other hand what will be the reply of the server
i.e. do the server have to pass this void ptr dirent
back to client 

etc.

N.B.: I am using my own structures of inode, dentry
etc and these structures are common between client and
server.

Thanks,

Uzair Lakhani


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

* Re: readdir in client/server Environment
  2006-04-20  5:30 readdir in client/server Environment UZAIR LAKHANI
@ 2006-04-26  5:21 ` Jan Hudec
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Hudec @ 2006-04-26  5:21 UTC (permalink / raw)
  To: UZAIR LAKHANI; +Cc: linux-fsdevel

[-- Attachment #1: Type: text/plain, Size: 337 bytes --]

On Wed, Apr 19, 2006 at 22:30:06 -0700, UZAIR LAKHANI wrote:
> Hello All,
> 
> I want to find out the internal workings of the file operations member
> readdir.

I think you are best off reading implementation of the simplest filesystem in
kernel tree, the ramfs (fs/ramfs/inode.c).

-- 
						 Jan 'Bulb' Hudec <bulb@ucw.cz>

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2006-04-26  5:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-20  5:30 readdir in client/server Environment UZAIR LAKHANI
2006-04-26  5:21 ` Jan Hudec

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