public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* JFFS2 destroys CRAMFS!
@ 2001-10-23 18:52 Bao C. Ha
  2001-10-24  8:48 ` Jörn Engel
  0 siblings, 1 reply; 2+ messages in thread
From: Bao C. Ha @ 2001-10-23 18:52 UTC (permalink / raw)
  To: linux-mtd

We are using RedBoot and have several MTD partitions.
One of the partitions has our minimal CRAMFS.  The
other contains JFFS2.  I made a mistake of compiling
a kernel with jffs2 built-in, but not cramfs.  The
bootup process tells the kernel to mount the cramfs
partition as the root device.  It just goes through 
and erased everything there, then it panics!

This behavior is not consistent with all other Linux
filesystems.  I would like to propose changes to the
designs of jffs2 as follows:

- Only make.jffs2 can create a jffs2 filesystem
- Unless jffs2 detects its MAGIC, it can't make
changes to the MTD partition.

It will save a lot of griefs later.  I know that
there are many work-arounds.  But, I had a mental
block that had refused to believe that a read-only
cramfs can be destroyed that easily.

Thanks.
Bao

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

* Re: JFFS2 destroys CRAMFS!
  2001-10-23 18:52 JFFS2 destroys CRAMFS! Bao C. Ha
@ 2001-10-24  8:48 ` Jörn Engel
  0 siblings, 0 replies; 2+ messages in thread
From: Jörn Engel @ 2001-10-24  8:48 UTC (permalink / raw)
  To: Bao C. Ha; +Cc: linux-mtd

Moin!

> - Unless jffs2 detects its MAGIC, it can't make
> changes to the MTD partition.

That appears to be a sane suggestion and would make me happy, too.
But, apart from the problem of existing FSs w/out the magic number,
there is also the question whether to use one MAGIC per FS or one per
delete block. The latter would definitely be nicer but might be
problematic with NAND flashes.

Jörn

-- 
If you treat your beta-testers as if they're your most valuable resource, 
they will respond by becoming your most valuable resource.

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

end of thread, other threads:[~2001-10-24  8:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-23 18:52 JFFS2 destroys CRAMFS! Bao C. Ha
2001-10-24  8:48 ` Jörn Engel

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