UBI: question about ubi_leb_change
Artem Bityutskiy
dedekind at infradead.org
Thu Mar 6 08:50:57 EST 2008
On Thu, 2008-03-06 at 21:39 +0800, Nancy wrote:
> Yes, but in FTL layer, it don't know whether the old mapped LEB is
> useful or not until
> the new mapped LEB which data stored in a write_cache have to be write
> to PEB. The
> write_cache maybe full filled with new data or just a little new data,
> others have to be read from the old mapped PEB
Ok, probably I understand what you are talking about. If you have a huge
file, and you remove it, the file-system does few changes in meta-data,
and that's it. Right, FTL does not know that the FS blocks the contents
of the file are stored at, are now in fact obsolete.
But UBI in now way can help you to solve this problem. How could it?
Invent an interface which would help.
The only way to go is to teach the FS which sits on top of you to inform
you about all blocks which become free when something is deleted. But
the existing FSes do not do this. An yes, this means you'll move garbage
all over the place, which is slow.
This is why we started UBIFS instead of doing FTL - because we assumed a
native FS should be significantly more efficient then FTL.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
More information about the linux-mtd
mailing list