[lkml]   [2015]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH V2] UBI: power cut emulation for testing
On Sun, Apr 5, 2015 at 9:31 PM, Pavel Machek <> wrote:
> On Thu 2015-03-26 23:59:50, 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.


 \ /
  Last update: 2015-04-05 22:21    [W:0.119 / U:0.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site