From: FabF <fabian.frederick@skynet.be>
To: maneesh@in.ibm.com
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: [OFFTOPIC] f_pos ?
Date: Tue, 06 Jul 2004 22:51:24 +0200 [thread overview]
Message-ID: <1089147084.3691.38.camel@localhost.localdomain> (raw)
In-Reply-To: <20040706195816.GB3097@in.ibm.com>
On Tue, 2004-07-06 at 21:58, Maneesh Soni wrote:
> 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.
>
btw, someone could tell why old ext2 readdir had "do the readahead"
feature ; current ext3 as well but new ext2 implementation doesn't ???
Regards,
FabF
> Thanks
> Maneesh
prev parent reply other threads:[~2004-07-06 20:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-04 19:18 [OFFTOPIC] f_pos ? FabF
2004-07-06 19:58 ` Maneesh Soni
2004-07-06 20:38 ` [OFFTOPIC] f_pos ? [PATCH 2.6.7-mm6] ext2_readdir commenting FabF
2004-07-06 20:51 ` FabF [this message]
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=1089147084.3691.38.camel@localhost.localdomain \
--to=fabian.frederick@skynet.be \
--cc=linux-kernel@vger.kernel.org \
--cc=maneesh@in.ibm.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.