All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladimir Saveliev <vs@namesys.com>
To: Pallavi <pallavidalya@gmail.com>
Cc: reiserfs-list@namesys.com
Subject: Re: reading data disk blocks of a file
Date: Wed, 22 Dec 2004 19:40:01 +0300	[thread overview]
Message-ID: <1103733601.3232.79.camel@tribesman.namesys.com> (raw)
In-Reply-To: <5fe093a5041222073823cdef43@mail.gmail.com>

Hello

On Wed, 2004-12-22 at 18:38, Pallavi wrote:
> hello,
> what are the internal operations to real a file..I understand that the
> semantic layer
> converts a filename into a key but where in the source code is the
> implementation of this semantic layer found and how does it exactly
> convert the name to a key?
> 
Having key of directory and name in it to look for you compose key of
directory entry and search with that key through filesystem tree. If
entry is found - you get key of file found entry points to.


> A key will lead me to a node. That node had range of keys each
> corresponding to an item.The key I get will point to an item. Let's
> say the item contains data, but given that the item size is limited
> the data may be spread  across items nodes.

If file data are spread across several nodes - there will be several
items. Keys of those items are different.

>  How are all the data
> blocks where data from particular file is stored identified.
> Basically i want to know how are all the data blocks of a file are
> accessed and read?
> 

reiserfs may store file data either in data blocks or in formatted
nodes.
To read data stored in data blocks you have to find number of block
where data you need are stored at. reiserfs stores those block numbers
in items which can be found by key. Once you have a number of block -
you have to read it to reach file data.

When file data stored in formatted node - you also make a key of
position in a file and search through the tree. Found item contains data
you looked for.


  reply	other threads:[~2004-12-22 16:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-22 15:38 reading data disk blocks of a file Pallavi
2004-12-22 16:40 ` Vladimir Saveliev [this message]
2004-12-22 17:28 ` Jeff Mahoney

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=1103733601.3232.79.camel@tribesman.namesys.com \
    --to=vs@namesys.com \
    --cc=pallavidalya@gmail.com \
    --cc=reiserfs-list@namesys.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.