From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752628AbbDEUeK (ORCPT ); Sun, 5 Apr 2015 16:34:10 -0400 Received: from a.ns.miles-group.at ([95.130.255.143]:65275 "EHLO radon.swed.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752010AbbDEUeF (ORCPT ); Sun, 5 Apr 2015 16:34:05 -0400 Message-ID: <55219C3A.2060603@nod.at> Date: Sun, 05 Apr 2015 22:34:02 +0200 From: Richard Weinberger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Pavel Machek CC: david.oberhollenzer@sigma-star.at, "linux-mtd@lists.infradead.org" , LKML Subject: Re: [PATCH V2] UBI: power cut emulation for testing References: <1427410790-8855-1-git-send-email-david.oberhollenzer@sigma-star.at> <20150405193146.GA12132@amd> <20150405200459.GA1118@amd> <55219677.6090900@nod.at> <20150405202559.GA3500@amd> In-Reply-To: <20150405202559.GA3500@amd> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 05.04.2015 um 22:25 schrieb Pavel Machek: > I guess so. So maybe warning in the documentation somewhere that real > hardware is nastier than designed-to-be-nasty emulation would be > nice..? Yeah, that's a good idea. David, can you please create a patch against mtd-www.git? Please also cover the existing powercut emulation of UBIFS. The reason why David added emulation for UBI was to stress-test UBI fastmap. The crucial operation of UBI changing the mapping between LEB and PEBs. This is why this emulation intercepts writes to the UBI VID header. For the sake of completeness interception of EC writes is also possible. Thanks, //richard