mkfs.jffs2 question

Ray Lehtiniemi rayl at otii.com
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:

 /some/place/foo
 /some/place/usr/bin/
 /some/place/usr/sbin/

then:

  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.



thanks

-- 
---------------------------------------------------------------------------
    Ray Lehtiniemi <rayl at mail.com> <rayl at otii.com>




More information about the linux-mtd mailing list