public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Luca Contini" <luca.contini@mediaenabling.com>
To: "David Woodhouse" <dwmw2@infradead.org>
Cc: Barone Tonino <tonino.barone@tecneitalia.com>
Cc: "linux-mtd-request@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: Please help, nftl question
Date: Mon, 30 Jun 2003 12:37:04 +0200	[thread overview]
Message-ID: <00ef01c33ef3$8c4987b0$a970a8c0@topo> (raw)
In-Reply-To: 1056701767.28202.38.camel@imladris.demon.co.uk

Hi David,
thank you very much for your help.
Things are definitely much clear now.
I'v been looking for 'struct mtd_blktrans_ops' but with no result.
Also for "include/mtd/blktrans.h" that I suppose is
"include/linux/mtd/blktrans.h", but I can't find any "blktrans.h".
Right now I'm trying to understand the code for mtdblock.

Regards

Luca

----- Original Message -----
From: "David Woodhouse" <dwmw2@infradead.org>
To: "Luca Contini" <luca.contini@mediaenabling.com>
Cc: "linux-mtd-request@lists.infradead.org" <linux-mtd@lists.infradead.org>;
"Barone Tonino" <tonino.barone@tecneitalia.com>
Sent: Friday, June 27, 2003 10:16 AM
Subject: Re: Please help, nftl question


> On Fri, 2003-06-27 at 09:14, Luca Contini wrote:
> > Hi,
> > which is difference between nftlcore and nftlmount ?
>
> nftlmount is the code which does and examines a flash device, looking
> for signs of the NFTL format on it, and then builds up all the relevant
> data structures for the NFTL code.
>
> nftlcore is the code which actually handles read/write access to the
> translation layer.
>
> You don't really need to worry about this -- it just seemed slightly
> nicer to split it NFTL two files. FTL and mtdblock are not split.
>
> > What kind of functions should SFTL export so that a filesystem can be
put
> > on?
>
> You need to provide a 'struct mtd_blktrans_ops', as defined in
> include/mtd/blktrans.h and implemented in mtdblock.c
>
> Don't look at NFTL, it'll just confuse you. Look at mtdblock.c instead.
>
> Take a copy of it, make the read and write functions just return errors.
> Add code to your 'add_mtd' routine to go and check for a valid
> SmartMedia TL on any device which is added. Then make the read function
> work properly -- finding the appropriate part of the flash containing
> whichever 'logical' block number is requested, and reading it.
>
> Then move on to writing...
>
> --
> dwmw2
>
>
>
>

  reply	other threads:[~2003-06-30 10:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-17  8:12 Please help, nftl question Luca Contini
2003-06-17  8:51 ` David Woodhouse
2003-06-18 11:55   ` Luca Contini
2003-06-18 11:59     ` David Woodhouse
2003-06-20  9:41       ` Luca Contini
2003-06-20  9:42         ` David Woodhouse
2003-06-26  9:01           ` Luca Contini
     [not found]             ` <1056618945.27553.38.camel@passion.cambridge.redhat.com>
2003-06-27  8:14               ` Luca Contini
2003-06-27  8:16                 ` David Woodhouse
2003-06-30 10:37                   ` Luca Contini [this message]
2003-06-30 10:36                     ` David Woodhouse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00ef01c33ef3$8c4987b0$a970a8c0@topo' \
    --to=luca.contini@mediaenabling.com \
    --cc=dwmw2@infradead.org \
    --cc=tonino.barone@tecneitalia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox