JFFS2: The Journalling Flash File System, version 2

What is JFFS2?

JFFS2 is a log-structured file system designed for use on flash devices in embedded systems. Rather than using a kind of translation layer on flash devices to emulate a normal hard drive, as is the case with older flash solutions, it places the filesystem directly on the flash chips.

JFFS2 was developed by Red Hat, based on the work started in the original JFFS by Axis Communications, AB.

How does it work?

A paper which was presented at the Ottawa Linux Symposium 2001 describing the development and operation of JFFS2 is available here, both in its original PDF form and also converted to HTML.

The slides which accompanied the talk are also available in PDF form, here.

What operating systems does JFFS2 work under?

JFFS2 works in Linux (v2.4 and later) and eCos

Where can I get it?

JFFS2 has been included in the official Linux kernel since the 2.4.10 release. The stable branch, supporting only NOR flash devices, is included in the current 2.4 series of kernels.

The latest code, including preliminary support for NAND flash and various other improvements and optimisations, in particular a vast improvement in the time taken to mount a file system, is available from the Memory Technology Device (MTD) CVS tree at cvs.infradead.org. To obtain an up to date copy, use the following commands:

      cvs -d :pserver:anoncvs@cvs.infradead.org:/home/cvs login (password: anoncvs)
      cvs -d :pserver:anoncvs@cvs.infradead.org:/home/cvs co mtd
    

The source for the mkfs.jffs2 utility is also in the CVS tree, in the util/ directory. A binary of v1.17 for i386 Linux is available here.

Where can I get more information?

Discussion of JFFS2 takes place on the original JFFS mailing list, jffs-dev@axis.com, which is archived at http://mhonarc.axis.se/jffs-dev/threads.html. Discussion of the underlying flash drivers should happen on the Linux-MTD mailing list, of which details are available at http://lists.infradead.org/mailman/listinfo/linux-mtd/


David Woodhouse
$Id: index.html,v 1.10 2003/07/09 14:15:20 dwmw2 Exp $