From: "dedekind" <dedekind@yandex.ru>
To: dwmw2@infradead.org
Cc: dedekind@yandex.ru, jwboyer@gmail.com, linux-mtd@lists.infradead.org
Subject: Re: State of UBI
Date: Mon, 11 Sep 2006 10:11:18 +0400 (MSD) [thread overview]
Message-ID: <4504FE06.000003.08700@webmail12.yandex.ru> (raw)
In-Reply-To: <1157910273.2977.175.camel@pmac.infradead.org>
>On Sun, 2006-09-10 at 21:00 +0400, dedekind wrote:
>> Full analogy with LVM. It'd be strange not to follow this model.
>
>Show me the changes that were made to ext3 to make it capable of
>mounting these new "LVM devices" where previously it could only do block
>devices.
I love your tricky questions :-)
Ok, the analogy is indeed not full and stops here. LVM does not change
semantics - you still have block devices with 2 operation - read and write.
I noted this already.
In case of UBI we do have meny semantical changes.
* UBI volumes are bad block free even if the underlying flash may have them
(like NAND). UBI hides this completely.
* UBI volumes wear are free, i.e., you may use the same eraseblock as much as
you want and the wear will anyway be distributed over whole flash.
* erase is always asynchronous, i.e., you call erase and it is scheduled for
erasure in context of the UBI background task.
* we have eraseblock type hints which are useful to let UBI know which
eraseblock it should pick (with low erase couter, or high, or medium).
This is not present in MTD.
* UBI maintains volume update operation. This is absent in MTD.
* UBI maintains GC hints. They are useful for a file system to to avoid
moving eraseblock which are going to be GCed anyway. This is not present
in MTD. And this is not implemented yet. But is planned.
* UBI maintains atomic eraseblock change operation. This means you may
change the contents of a LEB atomically. MTD is devoid of this nice
property which is extremely useful for FSes (e.g., you may garbage
collect without having a spare logical eraseblock). This is not yet
implemented but it is easy to implement and it is panned.
* UBI volumes may be dynamically created, deleted and resized. MTD
assumes only static stuff.
I believe the list is not full. New UBI-oriented software will certainly
make use of these properties and won't work on top of MTD.
For example, JFFS3 assumes that it does not have to think about
wear-levelling. And it makes no sense to use it on top of MTD. It is
UBI-oriented. And it needs only native UBI interface.
Nevertheless, having MTD interface is not a big geal. We may make gluebi
a part of UBI. Then you'll have native interface and MTD-like interfave for
legacy software.
VS. my changes in JFFS2 which make it usable on top of UBI. As soon as we
have gluebi we can forget about it.
Artem.
next prev parent reply other threads:[~2006-09-11 6:15 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-10 2:22 State of UBI Josh Boyer
2006-09-10 8:47 ` dedekind
2006-09-10 10:52 ` David Woodhouse
2006-09-10 12:35 ` Josh Boyer
2006-09-10 13:19 ` dedekind
2006-09-10 17:00 ` dedekind
2006-09-10 17:44 ` David Woodhouse
2006-09-11 6:11 ` dedekind [this message]
2006-09-10 12:32 ` Josh Boyer
2006-09-10 13:34 ` dedekind
2006-09-10 14:11 ` Josh Boyer
2006-09-10 14:23 ` dedekind
2006-09-11 8:11 ` David Woodhouse
2006-09-11 9:19 ` dedekind
2006-09-11 13:21 ` Josh Boyer
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=4504FE06.000003.08700@webmail12.yandex.ru \
--to=dedekind@yandex.ru \
--cc=dwmw2@infradead.org \
--cc=jwboyer@gmail.com \
--cc=linux-mtd@lists.infradead.org \
/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