v1.38 "mkfs.jffs2 --pad" goes overboard

David Wuertele dave-gnus at bfnet.com
Sun May 25 16:41:45 EDT 2003


Why is mkfs.jffs2 generating a larger file than I want?

  # /sbin/mkfs.jffs2 --version
  mkfs.jffs2: revision 1.38

  # /sbin/mkfs.jffs2 --pad=10485760 --little-endian --squash -e 16384 -d root -o jffs2.dat
  # ls -al jffs2.dat
  -rw-r--r--    1 root     root     10551296 May 25 13:36 jffs2.dat
  # 

My partition is only 10MB.  That's (1024*1024*10) = 10485760 bytes.
It is divisible by the 16k erase block.  So why does mkfs.jffs2 insist
on writing 65536 more bytes than I want?  Am I doing something wrong
or is this a bug?

Dave




More information about the linux-mtd mailing list