mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kapil a <kapilann@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: file system question
Date: Wed, 8 Feb 2006 18:39:28 -0500	[thread overview]
Message-ID: <ef2d59350602081539w7b6780e3mf6d8326f6d4963f2@mail.gmail.com> (raw)

I am trying to write a file system for 2.6.  I have written the
required things to mount my file system and now i am trying to get
some f_op's and d_op's. I was trying to make the 'ls' command work. So
i wrote a myfs_readdir() and linked it to the f_op field. My routine
gets called and also filldir gets called and stores the data in the
dirent but i dont get the output in stdout.

  On using strace i find that "ls" does not perform all the calls that
a "ls" in a directory mountedf in ext2 performs. To be specific, the
strace ouput ends after the getdents64 system call. In the normal "ls"
strace, i find there are a couple of more system calls namely a fstat
followed by a write to stdout and some more mmap calls.

  I dont understand the reason behind why the write is not called. My
guess is i have not over-ridden some function that i have to write as
part of my file system instead of using the default method.

  Any help regarding this would be appreciated...

  regards
  kaps

             reply	other threads:[~2006-02-08 23:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-08 23:39 kapil a [this message]
2006-02-09  0:01 ` Avishay Traeger
     [not found]   ` <ef2d59350602081611h4492bf47ne24e3d591efd29e7@mail.gmail.com>
2006-02-09  0:13     ` kapil a
2006-02-09  1:15       ` Bernd Eckenfels
     [not found]     ` <1139447727.4902.13.camel@rockstar.fsl.cs.sunysb.edu>
2006-02-09 17:57       ` kapil a
2006-02-09 21:54         ` Ram Gupta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ef2d59350602081539w7b6780e3mf6d8326f6d4963f2@mail.gmail.com \
    --to=kapilann@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®