linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nagy Zoltan <kirk@bteam.hu>
To: linux-fsdevel@vger.kernel.org
Subject: metafs
Date: Sat, 22 Mar 2008 14:27:54 +0100	[thread overview]
Message-ID: <47E5095A.5050707@bteam.hu> (raw)

Hello all,

sorry for the large posting - and for my intermediate english.

the past few months i tried to figure out a better way to organize data,
because in extereme conditions automatic/dynamic (re)organiziation would
be very good to have - i recently found this paper, which i found very 
similar
to this: http://bryanmills.net:8086/uploads/metafs/bmills-final.pdf

i imagined a two sided approach to came up with an acceptable solution
 * object tagging:
    it is obvious that people can give very precise information to a given
    object, in this example i would take some papers
        [obj1]    -    filename:    'something1.pdf'
                    type = "paper"
                    filetype = "application/pdf"
                    title = {Title1},
                    author = {Author1},
                    year = {2005},
        [obj2]    -    filename:    'xasd1.XXXpdf'
                    type = "paper"
                    filetype = "pdf"
                    title = {Title2},
                    author = {Author2},
                    year = {2005}
        [obj3]    -    filename:    'qqq.pdf'
                    type = "paper"
                    filetype = "pdf"
                    title = {Title3},
                    author = {Author3},
                    /** year = {2005} no set **/
        [obj4]    -    filename:    'asd.png'
                    type = "image/png"
                    filetype = "png"
                    title = {Title2},
                    author = {Author2},
                    year = {2005}

    all this data is accessible thru extended attributes

 * layout rules
    the user must give some guidance - about in what way he want's to see
    those files in this example i will choose the following rules:
        x_node0    =    _root_
        x_node1    =    {parent:x_node0}
                    {entry:"paper",
                        require:{type = "paper"},
                            unassigned:{collect,"unassigned"}
                                                        }
        x_node2    =    {parent:x_node1}    {entry:"by_year"}
        x_node3    =    {parent:x_node2}    {entry:#year,
                        type:collection,
                            unassigned:{collect,"year-not-set"}
        x_node4    =    {parent:x_node3}    {entry:#author|'_'|#title,
                        unassigned:{cascade}    }
    
    i hope that this understandable

the desired layout would be for those files:
    
    /
    /paper
    /paper/by_year
    /paper/by_year/2005
    /paper/by_year/2005/Author1_Title1.pdf    -->    [obj1]
    /paper/by_year/2005/Author2_Title2.pdf    -->    [obj2]
    /paper/by_year/year-not-set/qqq.pdf    -->    [obj3]
    /unassigned/asd.png                    -->    [obj4]

and if someone adds some new rules
        x_node5    =    {parent:x_node2}    {entry:"by_author",
                        type:collection,
                            unassigned:{collect,"unknown-author"}
        x_node6    =    {parent:x_node5}    {entry:#title|'_'|#year    }
then the following nodes should appear
    /paper/by_author
    /paper/by_author/Author1/Title1_2003    --> [obj1]
    [...]

the biggest power of this, that it is possible for an object to show up
at many places dynamically.
i think that this can be implemented as an 'overlay' (userland)filesystem,
with some lightweight database help

i know that algorithm for this kind of dynamic layout comes at a
very high price - it is/and will be a problem, it will be a big challange
to minimize it's impact on the overall performance - but for now, i think
about a relativly 'slow' changing object set.

what's the biggest problem with this?
how could it be
    - more adaptive to user's needs
    - faster at runtime
    - i welcome tips for implementing it - the right way
    - ..or why should i forget it :)

cheers,
kirk


                 reply	other threads:[~2008-03-22 13:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=47E5095A.5050707@bteam.hu \
    --to=kirk@bteam.hu \
    --cc=linux-fsdevel@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;
as well as URLs for NNTP newsgroup(s).