From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mdfmta005.mxout.tbr.inty.net ([91.221.168.46] helo=smtp.demon.co.uk) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XgFy2-0001Xg-I8 for linux-mtd@lists.infradead.org; Mon, 20 Oct 2014 16:37:59 +0000 Date: Mon, 20 Oct 2014 17:33:21 +0100 (BST) From: Steve B To: Artem Bityutskiy Subject: Re: UBI/UBFS: ubi_eba_read_leb() reporting unmapped LEB In-Reply-To: <1413820062.7906.376.camel@sauron.fi.intel.com> Message-ID: References: <1413812127.7906.282.camel@sauron.fi.intel.com> <1413813912.7906.305.camel@sauron.fi.intel.com> <1413818380.7906.352.camel@sauron.fi.intel.com> <1413820062.7906.376.camel@sauron.fi.intel.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: linux-mtd@lists.infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Thanks again, plenty for me to thing about! On Mon, 20 Oct 2014, Artem Bityutskiy wrote: > On Mon, 2014-10-20 at 16:25 +0100, Steve B wrote: >> Thank you very much for your suggestions Artem, gives me plenty to look >> into :) > > May be this will be also a useful piece of data. > > Back several years ago, we saw ext4 not recovering after power cuts on > eMMC. > > We knew ext4 is extremely complex, so we decided to go and test if eMMC > does the right job. Namely, if I submit data, they sync, does eMMC make > sure the data are on the media? > > Adrian (the other UBIFS author) implemented the eMMC power cut test. And > he found that you may write to block A, they sync, then write to block > B, and have power cut, and after reboot block A is corrupted. So > interrupted write to block B affected a different block A. > > We reported to the eMMC vendor, and the vendor acknowledged the problem > and we got newer eMMC, which was devoid of the issue. And our ext4 > issues went away, it became a lot better. > > This is why I say may be stressing UBI could be a good idea. It may be > waste of time too, though, if the problem is in UBIFS, or if the test > won't reveal a problem in UBI because the test is not good enough. But > it may also hit the nail quickly. > > Artem. > > >