From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752687AbbDEUFF (ORCPT ); Sun, 5 Apr 2015 16:05:05 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:39485 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752010AbbDEUFC (ORCPT ); Sun, 5 Apr 2015 16:05:02 -0400 Date: Sun, 5 Apr 2015 22:04:59 +0200 From: Pavel Machek To: Richard Weinberger Cc: david.oberhollenzer@sigma-star.at, "linux-mtd@lists.infradead.org" , LKML Subject: Re: [PATCH V2] UBI: power cut emulation for testing Message-ID: <20150405200459.GA1118@amd> References: <1427410790-8855-1-git-send-email-david.oberhollenzer@sigma-star.at> <20150405193146.GA12132@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun 2015-04-05 21:49:27, Richard Weinberger wrote: > On Sun, Apr 5, 2015 at 9:31 PM, Pavel Machek wrote: > > On Thu 2015-03-26 23:59:50, david.oberhollenzer@sigma-star.at wrote: > >> Emulate random power cuts by switching device to ro after a number of > >> writes to allow simple power cut testing with nand-sim. > >> > >> Maximum and minimum number of successful writes before power cut and > >> what kind of writes (EC header, VID header or none) to interrupt > >> configurable via debugfs. > >> > >> Signed-off-by: David Oberhollenzer > >> --- > >> V2: Remove broken check to prevent multiple triggering > > > > Does NAND always finish write of full block during powerfail? > > Not sure if I correctly understand your question. > Unless you don't have special hardware a write can be interrupted and > can cause problems. But this only emulates fail after a full block written, no? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html