Hi mountain8848,
> romfs/jffs2: is it romfs or jiffs2? Or romfs formated by jiffs2 ?
"romfs/jffs2" is just a name for the partition, nothing more ... it's there only for human consumption ... so
the name has absolutely no bearing on what you can or can't put in the partition. Although, it's generally a
good idea for the name to describe the _purpose_ of the partion. The author of the mtd map driver is
just saying that the partition is _intended_ for use by a "romfs" or "jffs2" filesystem. Perhaps a more
generic name would be "filesystem". You can take a look at the code in drivers/mtd/maps for examples.
> why MTD_WRITEABLE but /* force read-only */ ?
MTD_WRITEABLE is a _mask_, not an enable -- it's a flag indicating what is to be _removed_. To be
honest, I never really liked this. Anyway, see:
include/linux/mtd/partitions.h and include/mtd/mtd-abi.h
Regards,
--Scott