[RFC] mtd-utils: integck: add support for volume specific power-cut test

Mats Kärrman Mats.Karrman at tritech.se
Mon Aug 19 10:24:19 EDT 2013


Hi Artem,

Well, as far as I understand, and the tests I made support this, you can
either enable the tests for all UBIFS mounts using:

# echo "1" > /sys/kernel/debug/ubifs/tst_recovery

or you can enable it for one specific mount using something like:

# echo "1" > /sys/kernel/debug/ubifs/ubi1_0/tst_recovery

However, in the latter case, the flag is reset when the file system is remounted
so the test continues without tst_recovery enabled.

Or am I missing something here?

BR // Mats

________________________________________
From: Artem Bityutskiy [dedekind1 at gmail.com]
Sent: Monday, August 19, 2013 3:36 PM
To: Mats Kärrman
Cc: linux-mtd at lists.infradead.org
Subject: Re: [RFC] mtd-utils: integck: add support for volume specific power-cut test

On Mon, 2013-08-19 at 08:50 +0000, Mats Kärrman wrote:
> Problem:
> The current power-cut test requires power-cut emulation to be enabled globally
> (e.g. for all UBIFS volumes) but this may lead to some practical problems when
> the root fs of the tested machine is also of the same type.

Hi, sorry, I do not understand the problem. First of all, I never ran
this on a device which uses an UBIFS file-system as rootfs. I only ran
it on a PC where UBIFS has only been on top of a nandsim.

So, AFAICS, power cut emulation is per-mountpoint. So you should enable
it only for the the file-system under test. Power-cut should switch only
the file-system under test to R/O mode, not the rootfs.

What are the practical problems you mention?

--
Best Regards,
Artem Bityutskiy




More information about the linux-mtd mailing list