public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Block devices
@ 2008-02-21  7:05 David H. Lynch Jr.
  2008-02-21  9:40 ` Indraneel
  2008-02-21 16:48 ` Christoph Hellwig
  0 siblings, 2 replies; 4+ messages in thread
From: David H. Lynch Jr. @ 2008-02-21  7:05 UTC (permalink / raw)
  To: linuxppc-embedded, linux-fsdevel, linux-mtd

    Sometime recently it seems to have become possible to disable the
whole block device subsystem.
    Though in my tests I can't quit build with it disabled.

     Anyway, for an embedded device this might be appealing.
    how does this interact with initramfs and flash ?
   
    Can I boot an initramfs kernel without a block device ?
    Can I write a filesystem driver for a flash device that does not
require a block device ?
    Are their any examples of something even close ?

   

      







-- 
Dave Lynch 					  	    DLA Systems
Software Development:  				         Embedded Linux
717.627.3770 	       dhlii@dlasys.net 	  http://www.dlasys.net
fax: 1.253.369.9244 			           Cell: 1.717.587.7774
Over 25 years' experience in platforms, languages, and technologies too numerous to list.

"Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction."
Albert Einstein

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

* Re: Block devices
  2008-02-21  9:40 ` Indraneel
@ 2008-02-21  8:45   ` Jamie Lokier
  0 siblings, 0 replies; 4+ messages in thread
From: Jamie Lokier @ 2008-02-21  8:45 UTC (permalink / raw)
  To: Indraneel; +Cc: linux-mtd, David H. Lynch Jr.

Indraneel wrote:
> >     Can I write a filesystem driver for a flash device that does not
> > require a block device ?
> 
> AFAIK, for a flash file system you need a Block Device. But you can 
> write a character driver to access the flash without a Block Device.

I think JFFS2 (flash file system) does not require a block device.  If
you mount /dev/mtdblockN with JFFS2, it actually looks up the
corresponding MTD character device and uses that instead.  The same is
probably true of the other dedicated flash filesystems.

-- Jamie

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

* Re: Block devices
  2008-02-21  7:05 Block devices David H. Lynch Jr.
@ 2008-02-21  9:40 ` Indraneel
  2008-02-21  8:45   ` Jamie Lokier
  2008-02-21 16:48 ` Christoph Hellwig
  1 sibling, 1 reply; 4+ messages in thread
From: Indraneel @ 2008-02-21  9:40 UTC (permalink / raw)
  To: David H. Lynch Jr.; +Cc: linux-mtd

David,
First things first. Don't post to multiple mailing lists at the same time.

David H. Lynch Jr. wrote:
>     Sometime recently it seems to have become possible to disable the
> whole block device subsystem.

Yes it is possible. Works for me on 2.6.22-rc5.

>     Though in my tests I can't quit build with it disabled.
> 
>      Anyway, for an embedded device this might be appealing.
>     how does this interact with initramfs and flash ?
>    
>     Can I boot an initramfs kernel without a block device ?

Yes this is also possible. And that's why initramfs is fast.

>     Can I write a filesystem driver for a flash device that does not
> require a block device ?

AFAIK, for a flash file system you need a Block Device. But you can 
write a character driver to access the flash without a Block Device.

>     Are their any examples of something even close ?

  drivers/mtd/mtdchar.c

Regards,
Indro

> 
>    
> 
>       
> 
> 
> 
> 
> 
> 
> 

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

* Re: Block devices
  2008-02-21  7:05 Block devices David H. Lynch Jr.
  2008-02-21  9:40 ` Indraneel
@ 2008-02-21 16:48 ` Christoph Hellwig
  1 sibling, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2008-02-21 16:48 UTC (permalink / raw)
  To: David H. Lynch Jr.; +Cc: linux-fsdevel, linux-mtd, linuxppc-embedded

On Thu, Feb 21, 2008 at 02:05:52AM -0500, David H. Lynch Jr. wrote:
>     Can I boot an initramfs kernel without a block device ?

Yes.

>     Can I write a filesystem driver for a flash device that does not
> require a block device ?

Yes.

>     Are their any examples of something even close ?

For that particular flash case there's just jffs2 in the kernel tree,
with some more flash filesystems under development.  You can of
course have network and in-memory filesystems aswell.

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

end of thread, other threads:[~2008-02-21 16:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-21  7:05 Block devices David H. Lynch Jr.
2008-02-21  9:40 ` Indraneel
2008-02-21  8:45   ` Jamie Lokier
2008-02-21 16:48 ` Christoph Hellwig

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