[lkml]   [2001]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: jffs on non-MTD device?
Date said:
> I'm trying to run jffs on my ATA-flash disk (running ext2 could kill
> some flash cells too soon, right?) but it refuses:

CompactFlash does wear levelling internally.

> if (MAJOR(dev) != MTD_BLOCK_MAJOR) {
> printk(KERN_WARNING "JFFS: Trying to mount a "
> "non-mtd device.\n");
> return 0;
> }

> What are reasons for this check?

JFFS doesn't actually use the block device interface. Specifying it in the
mount command is simply a hack to make life easier, which nobody's yet
managed to obsolete. We actually use the underlying MTD device:

mtd = get_mtd_device(NULL, MINOR(dev));

If you want JFFS (or JFFS2) on a CF device - in the apparent absence of any
other relatively low overhead, compressing, journalling file system to use
on it - then you need to provide a translation driver similar to the mtdram
one which fakes an MTD device, using a block device as backing store.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:53    [W:0.089 / U:0.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site