Using UBIFS as an FTL
Richard Weinberger
richard at nod.at
Sun Jul 27 23:56:44 PDT 2014
Am 28.07.2014 05:06, schrieb Ezequiel Garcia:
> On 27 Jul 09:20 AM, Richard Weinberger wrote:
>> On Sat, Jul 26, 2014 at 1:41 AM, hujianyang <hujianyang at huawei.com> wrote:
>>> On 2014/7/26 2:21, Daniel Ehrenberg wrote:
>>>> - loopback-mounting a file on ubifs--From skimming the code, it looks
>>>> to me like ubifs uses some nice datastructures to handle writes within
>>>> a file without doing read-modify-writes all the time as ubiblock
>>>> forces. ubifs authors/maintainers, do you see any downside to using
>>>> ubifs this way?
>>>
>>> This way seems most easily to realize. Synchronize the loop file and
>>> maybe you will never worry about power cut.
>>>
>>> How about using UBI-layer and writing a new block driver to handle
>>> bio? This driver should care about which leb on the flash has data
>>> and other thing else(I don't have a clear idea now). The 'leb_change'
>>> ops in UBI-layer maybe helpful for in-place update and atomic write.
>>> But This way is harder than using a loop file.
>>
>> Instead of adding another UBI block layer, please integrate such functionality
>> in Ezequiel's UBI block.
>>
>
> Daniel already mentioned it didn't git his needs. Quoting him:
I did not promote it as the ultimate solution.
But if we add such functionality it should reuse existing stuff instead
of adding another UBI block layer....
Thanks,
//richard
More information about the linux-mtd
mailing list