public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Mtd block access (jffs2 formatted) and mtd char access (unformatted) on different partitions of a single flash device
@ 2003-05-20 20:53 John Burch
  2003-05-20 21:13 ` Charles Manning
  2003-05-21  9:05 ` Jörn Engel
  0 siblings, 2 replies; 6+ messages in thread
From: John Burch @ 2003-05-20 20:53 UTC (permalink / raw)
  To: linux-mtd

Is there a preferred way to access different mtd partitions of a single
flash device when certain accesses will be (1) block oriented via
standard file I/O of a jffs2 file system mounted on a /dev/mtdblockN
device and other accesses will be (2) character oriented via 'dd' (or
some other mechanism?) of unformatted/raw flash using /dev/mtdN?  Are
there any possibly bad interactions between mtd char and block device
access to the same device?

I've adopted a system that uses a driver with its own flash support to
read/write raw (non-jffs2) portions of the flash, while application code
uses standard file I/O to read/write jffs2 partitions on the same
device.  I'm concerned that these accesses may clash and possibly result
in corrupted flash, crashed kernel, etc.  Is this a legitimate concern
or does the mtd driver check flash status prior to any operations?


Thanks,
John

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

end of thread, other threads:[~2003-05-21 12:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-20 20:53 Mtd block access (jffs2 formatted) and mtd char access (unformatted) on different partitions of a single flash device John Burch
2003-05-20 21:13 ` Charles Manning
2003-05-21  9:05 ` Jörn Engel
2003-05-21  9:25   ` David Woodhouse
2003-05-21 12:33     ` Mtd block access (jffs2 formatted) and mtd char access(unformatted) on different partitions of a single flashdevice John Burch
2003-05-21 12:35       ` Mtd block access (jffs2 formatted) and mtd char access(unformatted) on different partitions of a single flash device David Woodhouse

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