Re: Accessing File system directories

2009-07-30 Thread Greg KH
On Thu, Jul 30, 2009 at 05:10:19AM -0700, Dan Danillo wrote: > > > > > > > Could you create a daemon that attaches to a usb gadget driver? The > > > > daemon > > in > > > > user space would be able to access whichever file system you want? > > > > > > I could try that, but I did not want to

Re: Accessing File system directories

2009-07-30 Thread Dan Danillo
> > > Could you create a daemon that attaches to a usb gadget driver? The > > > daemon > in > > > user space would be able to access whichever file system you want? > > > > I could try that, but I did not want to touch g_file_storage. > > Instead I wanted to write my own block device driver

Re: Accessing File system directories

2009-07-30 Thread Dan Danillo
> > Hi, > > Have a look at vfs_path_lookup() . In particular probably you want > path_walk(). > > Thanks - > Manish > Well, I looked into that but I don't see how that may help me. path_walk() is called by filp_open() so I would get the same information. However, I don't see how I can find

Re: Accessing File system directories

2009-07-28 Thread Greg KH
On Tue, Jul 28, 2009 at 07:17:11AM -0700, Dan Danillo wrote: > > > Dan Danillo wrote: > > > > > Dan Danillo wrote: > > > >> Hello, > > > >> > > > >> I'm trying to find out how to browse the file system from the > > > >> linux kernel. Especially the directory content is interesting to > > > >> me.

Re: Accessing File system directories

2009-07-28 Thread Dan Danillo
> Dan Danillo wrote: > > > Dan Danillo wrote: > > >> Hello, > > >> > > >> I'm trying to find out how to browse the file system from the > > >> linux kernel. Especially the directory content is interesting to > > >> me. Can anyone give me a hint? Are there even some libc like > > >> functions to d

Re: Accessing File system directories

2009-07-28 Thread Martyn Welch
Dan Danillo wrote: > Dan Danillo wrote: >> Hello, >> >> I'm trying to find out how to browse the file system from the >> linux kernel. Especially the directory content is interesting to >> me. Can anyone give me a hint? Are there even some libc like >> functions to do that ? > You might want to r

Re: Accessing File system directories

2009-07-27 Thread Manish Katiyar
On Mon, Jul 27, 2009 at 2:49 PM, Dan Danillo wrote: > > Hello, > > > >> >> Hi Dan, >> >> >> On Mon, Jul 27, 2009 at 11:54 AM, Dan Danillowrote: >> > Hello, >> > >> > I'm trying to find out how to browse the file system from the linux kernel. >> >> What exactly do you mean by that. >> Do you mean th

Re: Accessing File system directories

2009-07-27 Thread Martyn Welch
Dan Danillo wrote: Hello, I'm trying to find out how to browse the file system from the linux kernel. Especially the directory content is interesting to me. Can anyone give me a hint? Are there even some libc like functions to do that ? You might want to read this: http://kernelnewbies.o

Re: Accessing File system directories

2009-07-27 Thread Dan Danillo
> Dan Danillo wrote: > > Hello, > > > > I'm trying to find out how to browse the file system from the linux > > kernel. Especially the directory content is interesting to me. Can > > anyone give me a hint? Are there even some libc like functions to do > > that ? > > You might want to read t

Re: Accessing File system directories

2009-07-27 Thread Dan Danillo
Hello, > > Hi Dan, > > > On Mon, Jul 27, 2009 at 11:54 AM, Dan Danillowrote: > > Hello, > > > > I'm trying to find out how to browse the file system from the linux kernel. > > What exactly do you mean by that. > Do you mean that you want to traverse the namespace being inside the > kernel t

Re: Accessing File system directories

2009-07-27 Thread SandeepKsinha
Hi Dan, On Mon, Jul 27, 2009 at 11:54 AM, Dan Danillo wrote: > Hello, > > I'm trying to find out how to browse the file system from the linux kernel. What exactly do you mean by that. Do you mean that you want to traverse the namespace being inside the kernel through some kernel module or someth

Accessing File system directories

2009-07-26 Thread Dan Danillo
Hello, I'm trying to find out how to browse the file system from the linux kernel. Especially the directory content is interesting to me. Can anyone give me a hint? Are there even some libc like functions to do that ? So far I have found the filp_open, vfs_read and vfs_readdir functions. However