public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* v1.38  "mkfs.jffs2 --pad"  goes overboard
@ 2003-05-25 20:41 David Wuertele
  2003-05-25 20:48 ` David Wuertele
  0 siblings, 1 reply; 2+ messages in thread
From: David Wuertele @ 2003-05-25 20:41 UTC (permalink / raw)
  To: linux-mtd

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: v1.38  "mkfs.jffs2 --pad"  goes overboard
  2003-05-25 20:41 v1.38 "mkfs.jffs2 --pad" goes overboard David Wuertele
@ 2003-05-25 20:48 ` David Wuertele
  0 siblings, 0 replies; 2+ messages in thread
From: David Wuertele @ 2003-05-25 20:48 UTC (permalink / raw)
  To: linux-mtd

Never mind.  My root dir had more than 10MB in it because I forgot to
strip some files.  Sorry.

Me> Why is mkfs.jffs2 generating a larger file than I want?
Me>   # /sbin/mkfs.jffs2 --version
Me>   mkfs.jffs2: revision 1.38

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-25 20:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-25 20:41 v1.38 "mkfs.jffs2 --pad" goes overboard David Wuertele
2003-05-25 20:48 ` David Wuertele

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox