[PATCH v2] mtd-utils: integck: add support for volume specific power-cut test
Artem Bityutskiy
dedekind1 at gmail.com
Tue May 27 05:37:29 PDT 2014
On Thu, 2014-05-15 at 08:21 +0000, Mats Kärrman wrote:
> From a3c9a9be5fe136d1a8e1c029a9f8cc3de634afd2 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Mats=20K=C3=A4rrman?= <mats.karrman at tritech.se>
> Date: Thu, 15 May 2014 10:03:56 +0200
> Subject: [PATCH v2] mtd-utils: integck: add support for volume specific power-cut
> test
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
>
> Problem:
> The current power-cut test requires power-cut emulation to be enabled globally
> (e.g. for all UBIFS volumes) since the power-cut mode is otherwise lost when
> the file-system is re-mounted. However this may lead to some practical
> problems when the root fs of the tested machine is also of the same type.
>
> Solution:
> Modify the -p option so that it automatically enables power-cut testing
> selectively for the tested filesystem and then re-enables it after every
> re-mount. Enabling is done by writing "1" to the associated control file.
> The file to use is deduced from the mounted device and the assumption that
> debugfs is mounted on /sys/kernel/debug.
>
> Signed-off-by: Mats Kärrman <mats.karrman at tritech.se>
Mats, firs of all, my apologies for slowness. And my apologies for
leading you to this direction.
But I think I see the problem with this solution now.
The problem is that with this we won't get power cut emulated while you
mount the file system.
Before this change, we could have something like:
1. Working with the FS, power-cut
2. Unmount the FS, start mounting -> power-cut in the middle of mount.
So we could test power cuts while we are in the middle of recovery from
the previous power cuts, in a way "nested" power-cuts.
With your change, we never have them.
--
Best Regards,
Artem Bityutskiy
More information about the linux-mtd
mailing list