MTD CVS update: 'mtd/util mkfs.jffs2.c'

andersen at infradead.org andersen at infradead.org
Sun Sep 9 00:12:06 EDT 2001


Update of /home/cvs/mtd/util
In directory infradead.org:/tmp/cvs-serv14843

Modified Files:
	mkfs.jffs2.c 
Log Message:
Major architectural change.  Previously, mkfs.jffs2 would read each
entry in the target directory and immediately output an entry to the
target jffs2 filesystem.  This precluded creating hard links, as well
as some other neat things.

This change causes mkfs.jffs2 to read the target directory and create
an in-memory list of "struct directory_entry"s and "struct
filesystem_entry"s.  Next I scan a device table file, and use that to
modify permissions and ownership on existing files, and to create "on
the fly" new files, such as device nodes.

Finally, now that we know exactly what we want to writte to the target
jffs2 filesystem, we go ahead and walk the list of directory entries
and filesystem_entrys creating everything. 

I have not yet added support for creating hard links, but the new
architecture makes that quite easy to add.
 -Erik





More information about the linux-mtd-cvs mailing list