From: Maneesh Soni <maneesh@in.ibm.com>
To: FabF <fabian.frederick@skynet.be>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: [OFFTOPIC] f_pos ?
Date: Tue, 6 Jul 2004 14:58:16 -0500 [thread overview]
Message-ID: <20040706195816.GB3097@in.ibm.com> (raw)
In-Reply-To: <1088968685.2429.1.camel@localhost.localdomain>
On Sun, Jul 04, 2004 at 07:31:29PM +0000, FabF wrote:
> Hi,
>
> I try to understand how readdir process works and I can't understand
> f_pos management :
>
> Having in mind things work that way :
>
> user : ls
> glibc :
> open (->sys_open)
> getdentries64 (->sys_getdentries64)
>
> kernel:
> sys_getdentries64
> ->vfs_readdir
> ->ext2_readdir
>
> At that point, I don't understand why ext2_readdir is playing with
> filp->f_pos .... It should be 0 ...Why does it care about offset ?
>
I think it may not be 0 all the time. A seekdir() could change could change
the offset to non-zero.
Thanks
Maneesh
--
Maneesh Soni
Linux Technology Center,
IBM Austin
email: maneesh@in.ibm.com
Phone: 1-512-838-1896 Fax:
T/L : 6781896
next prev parent reply other threads:[~2004-07-06 19:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-04 19:18 FabF
2004-07-06 19:58 ` Maneesh Soni [this message]
2004-07-06 20:38 ` [OFFTOPIC] f_pos ? [PATCH 2.6.7-mm6] ext2_readdir commenting FabF
2004-07-06 20:51 ` [OFFTOPIC] f_pos ? FabF
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=20040706195816.GB3097@in.ibm.com \
--to=maneesh@in.ibm.com \
--cc=fabian.frederick@skynet.be \
--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
Powered by JetHome