From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga03-in.huawei.com ([119.145.14.66]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XBb1m-0003IU-Un for linux-mtd@lists.infradead.org; Mon, 28 Jul 2014 02:51:08 +0000 Message-ID: <53D5BA52.7060108@huawei.com> Date: Mon, 28 Jul 2014 10:49:54 +0800 From: hujianyang MIME-Version: 1.0 To: Richard Weinberger Subject: Re: Using UBIFS as an FTL References: <53D2EB45.9060302@huawei.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Daniel Ehrenberg , "linux-mtd@lists.infradead.org" , ezequiel.garcia@free-electrons.com, artem.bityutskiy@linux.intel.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 2014/7/27 15:20, Richard Weinberger wrote: > On Sat, Jul 26, 2014 at 1:41 AM, hujianyang 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. > Oh, sorry~! I didn't know his work before. I should have done some more researches. Did you mean MTD_UBI_BLOCK? It seems a read-only interface. What's your plan on it? Add cc: Ezequiel Garcia Richard, Thank you very much~!