Re: Writing inode_operations->create() function.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 3/12/07, Prasad Joshi <prasadjoshi124@xxxxxxxxx> wrote:
Yes, I will go through it. Thanks a lot for the link.

Thanks and Regards,
Prasad.


On 3/12/07, Avishay Traeger < atraeger@xxxxxxxxxxxxx> wrote:
On Mon, 2007-03-12 at 17:48 +0530, Prasad Joshi wrote:
>
>
> On 3/12/07, Avishay Traeger <atraeger@xxxxxxxxxxxxx> wrote:
>         On Mon, 2007-03-12 at 15:34 +0530, Prasad Joshi wrote:
>         > Hi All,
>         >
>         > I was trying to write a sample file system for learning
>         purpose. After
>         > mounting the file system and creating a file, say test, I am
>         not able
>         > to see the file in the directory list.
>
>         <snip>
>
>         I didn't read your create code, because I first wanted to ask
>         if you had
>         already implemented the lookup/readdir code?  You might be
>         creating the
>         file but have no way to show it.
>
> Thanks for your reply.
> I am using, generic simple_lookup() as my lookup procedure.
>
>
> Thanks and Regards,
> Prasad.
>         Avishay

You will probably also need to implement the readdir function.  This is
a pretty good beginner's guide for writing file systems:

http://www.geocities.com/ravikiran_uvs/articles/rkfs.html

I went through the link. It's good document. I have one more such link http://lwn.net/Articles/57369/. But the problem with the file systems from these two links is  "they contain static files and directories. we can't create files or delete".

So, I thought of adding that functionality. But, I am stuck in the middle of it.

Please someone help or at least point me to some more such links.

Thanks and regards,
Prasad.
 

Avishay





[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux