public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: "Mats Kärrman" <Mats.Karrman@tritech.se>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: [PATCH 2/2] mtd-utils: integck: add support for volume specific power-cut test
Date: Tue, 13 May 2014 14:00:38 +0300	[thread overview]
Message-ID: <1399978838.1797.35.camel@sauron.fi.intel.com> (raw)
In-Reply-To: <ED3E0BCACD909541BA94A34C4A164D4C5B3D17D4@post.tritech.se>

Hi Mats,

yes, I was a bit confused. But generally I do not immediately like this
patch is that it adds complexity to already complex, not very
well-structured and not very well-commented code.

And it adds another option, which means that the potential user will
have to think about using it or not.

On Tue, 2014-04-15 at 15:07 +0000, Mats Kärrman wrote:
> Both the "-p" and the "-P" options enable UBIFS power-cut tests. AfaIk there is no such thing for UBI (?).
> My problem is that I like to run the tests on my target platform that uses UBIFS as root FS.
> If I enable "power-cut" emulation globally (i.e. echo 1 > /sys/kernel/debug/ubifs/tst_recovery) this will
> enable "power-cuts" not only for the tested partition (good) but also for my root fs (bad).

OK, thanks for explaining.

> UBIFS gives the opportunity to also enable "power-cuts" for a specific UBI volume (e.g.
> echo 1 > /sys/kernel/debug/ubifs/ubi1_0/tst_recovery) but this only works until the UBI partition
> is reattached (the flag is initialized to 0).

Why wouldn't we have this to be the default, and the only way?

> What "-P" does differently from "-p" is that it re-enables the power-cut emulation for the used
> partition before continuing the test after a remount.

Do we really need 2 options for this test? May be we can just use per-FS
knob in the old option?

> It seems that the help-text of integck suggests that the power-cut test mode is available for
> any filesystem that is "able to emulate power-cuts" so the "(currently implemented for UBIFS only)"

Well, this was probably a mistake to add this comment, feel free to kill
it. This is ubifs-specific.

> is there because this is the only fs integck is (currently) able to reenable emulation for. ("-p"
> requires emulation to be enabled before launching integck which took me a while to figure out
> so this should perhaps also be written in the help text).

You are always welcome with a patch :-)

-- 
Best Regards,
Artem Bityutskiy

  parent reply	other threads:[~2014-05-13 11:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-14 11:47 [PATCH 2/2] mtd-utils: integck: add support for volume specific power-cut test Mats Kärrman
2014-04-15 13:12 ` Artem Bityutskiy
2014-04-15 15:07   ` Mats Kärrman
2014-05-13  9:29     ` Mats Kärrman
2014-05-13 11:00     ` Artem Bityutskiy [this message]
2014-05-13 12:59       ` Mats Kärrman
2014-05-13 13:31         ` Artem Bityutskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1399978838.1797.35.camel@sauron.fi.intel.com \
    --to=dedekind1@gmail.com \
    --cc=Mats.Karrman@tritech.se \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox