All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yury Umanets <umka@namesys.com>
To: Fred -- Speed Up -- <speedup@free.fr>
Cc: reiserfs-list@namesys.com
Subject: Re: Some more questions about Reiser4 ;)
Date: Sat, 10 May 2003 20:09:11 +0400	[thread overview]
Message-ID: <3EBD2427.4000806@namesys.com> (raw)
In-Reply-To: <007201c31709$4f36c5c0$9900a8c0@xpstation>

Fred -- Speed Up -- wrote:

>Thank you for your answers ;)
>
>You're right, I'd have to read the source code, but I don't really know
>where I can find it : where do you keep the recent snapshots, the only thing
>I've been able to download is your 2.5.60 patch and the february Reiser4
>utilities.
>
2.5.60 is enough. Disk format was not changed substantionaly since it. 
Also you can download reiser4progs and try to find out everything you 
are intersted in there.  You can get it at 
http://thebsh.namesys.com/snapshots/2003.05.10/

>
>  
>
>>Until fsck is done, filesystem cannot be used in production anyway :) We
>>working on fsck now and another tools. If you are intersting, I will
>>send you package or link, it may obtained at.
>>    
>>
>It would be nice if you could sent me the url, thank you ;)
>
http://thebsh.namesys.com/snapshots/2003.05.10/

>
>  
>
>>The parsing the file path is fully VFS' job.
>>    
>>
>Probably ... but the Reiser4 doc specifies a "semantic layer" and a "storage
>layer" : does the semantic layer only consist in VFS resolving path from
>standard Reiser4 directory reading methods based on reading directory
>entries and everytime resolving the whole path reading the Reiser4 physical
>tree ?
>
Storage layer (storage tree) is the tree balanced tree itself (node 
pointer items, keys, items on leaf level, etc).

Semantic layer is more higher level of abstraction which means, that the 
filesystem objects lie on storage level and has some relations with 
parent objects.
Suppose we have path /usr/src/linux. The object "linux" lies inside 
object "src", that is key locality component of the object "linux" the 
same as object id of the object "src".

>Does Reiser4 implement some new ways of resolving paths, as I thought I've
>read in the doc, to convert file paths to keys or does VFS alone achieve
>this ?
>
Filesystems in linux are not supposed to parse paths. When linux VFS is 
parsing a path, it is consulting with corresponding filesystem, in order 
to find needed components. For instance, VFS calls some lookup method of 
the directory object in order to find entry by name in it. And so on.

>When you're speaking of a graph used by the semantic layer, would it be part
>of the VFS caching process ?
>
Probably you mean dentry cache?

>Another thing I could hardly understand : does Reiser4 keep directories
>apart from files so that path can be cached or are they kept with the same
>status normal files got ?
>
I can't understand you.

>
>  
>
>>We should understand the difference between balancing and keeping tree
>>consistent.
>>Tree is consistent if the following rule is hold true: all nodes may be
>>accessed by means of using theirs left delimiting keys.
>>Tree is balanced if all used invariants are hold true (for instance, all
>>nodes are half filled, or all nodes fully filled, etc). Also tree should
>>not be singular.
>>
>>Reiser4 in balancing time (any tree modification) does only care about
>>tree consistency and keeps it in not singular state. Whereas flush does
>>care about invariants (packing, etc).
>>    
>>
>I didn't noticed the difference, thank you for pointing this out. I
>understand the "balancing" process, which is documented on your website,
>meaning packing dirty memory items on flushing, but I don't understand what
>you mean by "tree should not be singular" : 
>

>does this mean a twig should
>contain more than one item ?
>
This means, that tree is as minimal height as possible. Suppose we have 
tree of height 3. Root level (3) contains one item and 2 sevel has  one 
item. This tree is singular. That it is because,  we need only two 
levels in this case. Tree like this is possible in balancing time. Flush 
will care about that in its time.

>The really interesting thing (the mysterious one :-D) is the
>consistency-keeping process. I didn't really understood the left-delimiting
>key concept, I guess it's something like a path in the storage tree,
>
You are right :)

> am I
>right ? 
>

>In a consistent tree, do all the inodes got the same left-delimiting
>key depth ?
>
We do not have inodes in storage tree. We have nodes instead.

Left delimiting key means,  that if node pointer item in the index part 
of tree (levels from tree height through to 2) points to some node, then 
node pointer item key equal to leftmost key of the node node pointer 
points to.

>
>
>Real thank you for your answers Yuri ;)
>
You are welcome.

>I'm going to read my "kernel internals" book to know more about the VFS and
>ext2 handlings, so you can expect some more questions (or answers ;))
>comming :-D
>

>
>Fred
>
>
>
>  
>


-- 
Yury Umanets
"We're flying high, we're watching the world passes by..."




  reply	other threads:[~2003-05-10 16:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-06 18:30 Some more questions about Reiser4 ;) Fred -- Speed Up --
2003-05-09 11:29 ` Yury Umanets
2003-05-10 15:32   ` Fred -- Speed Up --
2003-05-10 16:09     ` Yury Umanets [this message]
2003-05-10 17:39       ` Fred -- Speed Up --
2003-05-10 18:36         ` Hans Reiser
2003-05-10 18:57           ` Fred -- Speed Up --
2003-05-11 16:27             ` Hans Reiser
  -- strict thread matches above, loose matches on Subject: below --
2003-05-08  6:23 Fred -- Speed Up --
2003-05-03 21:33 Fred -- Speed Up --
2003-05-10 18:43 ` Hans Reiser

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=3EBD2427.4000806@namesys.com \
    --to=umka@namesys.com \
    --cc=reiserfs-list@namesys.com \
    --cc=speedup@free.fr \
    /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.