mkfs.jffs2 question

Ray Lehtiniemi rayl at
Sat Mar 2 19:52:37 EST 2002

hi folks

two problems i notice with mkfs.jffs2:

first, the '-p' option seems to be parsed a little strangely:

  mkfs.jffs2                  ----> 712832 bytes
  mkfs.jffs2 -p               ----> 720896 bytes
  mkfs.jffs2 --pad            ----> 720896 bytes
  mkfs.jffs2 -p 0x800000      ----> 720896 bytes
  mkfs.jffs2 --pad=0x800000   ----> 8388608 bytes

shouldn't number 4 also result in an 8MB image?

second, if the very first dirent of the --root= argument is itself a dir, then
it is not put into the jffs2 image.  for example, if i have:



  mkfs.jffs2 --root=/some/place -o some.img

will contain both /usr/bin and /usr/sbin, but

  mkfs.jffs2 --root=/some/place/usr -o some.img

will only contain /sbin (assuming it's the first dirent in usr)

i am looking at the code right now, but i was hoping the answer might jump out
at someone who already knows the code.


    Ray Lehtiniemi <rayl at> <rayl at>

More information about the linux-mtd mailing list