public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Bob Zhang" <zhanglinbao@gmail.com>
To: "Jared Hulbert" <jaredeh@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Does anyone run AXFS in 2.4 version of kernel ? I am trying my best to apply AXFS patches into 2.4.18
Date: Tue, 17 Jun 2008 22:57:54 +0800	[thread overview]
Message-ID: <85e7c2fc0806170757t66a1167m9683fd4ad1c36f71@mail.gmail.com> (raw)
In-Reply-To: <85e7c2fc0806160720v510a565id709ee782851169d@mail.gmail.com>

Today I carefully read the mkfs.axfs.c , I finally make clear about
the axfs is how to organize the structure ,including the spec of super
,and the content of region , and how to store the file content in
different region are .

Jared Hulber is a great programmer , this is a very complex thing .
I am ready for writing a document about I have known for more newbies for axfs.

----
In fact , yesterday , I asked a stupid question to Jared Hulbert , the
information from /proc/axfs/volume0 is engough to create a valid xml
file .

for example ,from
./bin/busybox,0,18

./bin/busybox,28672,2

./bin/busybox,53248,4

./bin/busybox,143360,3

./bin/busybox,147456,3

./bin/busybox,151552,8

./bin/busybox,155648,11

we can know the page of offset 0 is called 18 times ,compared with
other pages , it should be set XIP.
<xipfsmap>
	<file>
		<name>
			./bin/busybox
		</name>
		<chunk>
			<size>4096</size>
			<offset>0</offset>    //maybe we need convert it from /proc info
		</chunk>
	</file>
</xipfsmap>
the advantage of AXFS is that we can set every page to be XIP , so the
size is certainly 4096. but if we think like this , the size item in
the xml is useless, I think maybe Jared Hulber want to provide some
lazy method to set contiguous pages to be XIP , you don't need to
write some chunk . but I feel that the chance of contiguous pages are
read is not high , so for us , setting every page is enough .

if we want to set many pages to be XIP , we should write many chunk items .

Am I right , Mr Hulbert ?

Best Regards,
Bob

  reply	other threads:[~2008-06-17 14:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-09 16:19 Does anyone run AXFS in 2.4 version of kernel ? I am trying my best to apply AXFS patches into 2.4.18 Bob Zhang
2008-05-12 16:23 ` Jared Hulbert
2008-05-14  0:46   ` Bob Zhang
2008-05-14  1:01     ` Jared Hulbert
     [not found]       ` <85e7c2fc0805190842v6ee5f4f3jef7790b0fa459a21@mail.gmail.com>
2008-06-16 14:20         ` Bob Zhang
2008-06-17 14:57           ` Bob Zhang [this message]
2008-06-17 15:26             ` Bob Zhang
2008-06-18 14:43               ` Bob Zhang
2008-06-16 14:55       ` Bob Zhang

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=85e7c2fc0806170757t66a1167m9683fd4ad1c36f71@mail.gmail.com \
    --to=zhanglinbao@gmail.com \
    --cc=jaredeh@gmail.com \
    --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