Re: MTD for buffered IO

From: "Портон Виктор Львов ич"
Date: Mon Feb 13 2006 - 17:58:05 EST




> Victor Porton,,, <porton@xxxxxxxxxxx> wrote:
>
> > I suggest to add kernel configuration/option to allow to use
> > an MTD device as a continuation of I/O buffers (for HDD).
>
> Why do you want to be limited to MTD devices?
> What about creating a device-mapper target using JBD instead?

Good idea, which probably already works with current Linux with ext3. But we should be not limited to JDB systems. Your idea works only with JDB, so your idea (despite of being a good idea) is a hack.

> > One way to implement it would be to add the option for a swap
> partition/file
> > to allow to use this swap partition/file as I/O buffer for other device.
>
> -EBADIDEA. You'd certainly lose data on power failures.

How it is worse than to lose data on power failures with the standard Linux memory I/O cache?

Moreover so we can lose LESS, as Flash memory will preserve swap content unlike RAM.

> --
> Ich danke GMX dafьr, die Verwendung meiner Adressen mittels per SPF
> verbreiteten Lьgen zu sabotieren.
>

--
Victor Porton (porton@xxxxxxxxxxx)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/