Ferenc Havasi | 3 Jun 14:46
Picon
Favicon

JFFS2 - BBC - model file support

Hi,

Now there is only one feature in BBC which is not yet supported in the 
official JFFS2: model files. I would like to (re)implement it for JFFS2.

If someone doesn't know what are model files (and BBC), why they can be 
usefull: JFFS2 splits the files into 4KB blocks and compresses them 
individually. 4K can be too small for the compressors to detect 
correspontendes in the data and compress it effectively. To overcome 
this problem we can introduce the concept of model-based compressor, 
which can collect information about the file structure before making the 
file system image, and can use this (model) information during 
(de)compressing blocks. We developed a model based compressor - it use 
binary decision tree as model. It is designed specially for compressing 
ARM code.

In BBC there was a "bbc.conf" file in the root directory of the JFFS2 
image containg the names of the model files. At mounting time the system 
reads this file, and load all the specified files - using their names.

David, you wrote me that you don't like this (name-based) solution, 
because the models are regular files and the (at least the super)user 
can modify/delete it.

You suggested to use inode number instead of names - which is hidden 
from the user. I thought it over and now I descibe my plan how to 
implement it in details - before staring to do it:
- it will be optional (can be selected by kernel-config)
- to identify model-based compressors the highest bit of their 
JFFS2_COMPR_XXX number will be 1
(Continue reading)

eibach | 15 Jun 13:56
Picon
Favicon

JFFS2 free space

Hello,

I am using ecos together with JFFS2.
Is there any way to find out the free space left in the JFFS2? I had a look at the sources but didn't find any clues.

Regards,
Dirk

To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo <at> axis.com

David Woodhouse | 15 Jun 15:05
Favicon

Re: JFFS2 free space

On Tue, 2004-06-15 at 11:56 +0000, eibach <at> gdsys.de wrote:
> Hello,
> 
> I am using ecos together with JFFS2.
> Is there any way to find out the free space left in the JFFS2? I had a look at the sources but didn't find any clues.

Define 'free space'

--

-- 
dwmw2

To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo <at> axis.com

eibach | 15 Jun 15:23
Picon
Favicon

Re: JFFS2 free space

> Define 'free space'

I would like to have some kind of basic idea, how much more data could be stored in the JFFS2-filesystem
(without considering compression).

Regards,
Dirk

To: dwmw2 <at> infradead.org
Cc: jffs-dev <at> axis.com

To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo <at> axis.com

eibach | 17 Jun 12:07
Picon
Favicon

Receive available and used space from JFFS2

Hi,

this adds support for information about used and available space in JFFS2 (ecos). This information is
received via cyg_fs_getinfo(). The keys for cyg_fs_getinfo() are FS_INFO_FREESIZE and FS_INFO_USEDSIZE.

Regards,
Dirk

To: ecos-patches <at> sources.redhat.com
Cc: jffs-dev <at> axis.com

Attachment (jffs2_getfreespace.patch): application/octet-stream, 3479 bytes

Gmane