All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Theodore Ts'o" <tytso@mit.edu>
To: Tahsin Erdogan <tahsin@google.com>
Cc: fstests@vger.kernel.org, Zhao Hongjiang <zhaohongjiang@huawei.com>
Subject: Re: [PATCH] generic/310: make ext[2-4] error patterns more specific
Date: Thu, 12 Nov 2015 11:15:50 -0500	[thread overview]
Message-ID: <20151112161550.GA3431@thunk.org> (raw)
In-Reply-To: <1447288590-31937-1-git-send-email-tahsin@google.com>

On Wed, Nov 11, 2015 at 04:36:30PM -0800, Tahsin Erdogan wrote:
> This test watches for ext[2-4] filesystem errors in kernel messages but it
> incorrectly identifies unrelated messages that contain string "error" as
> a failure condition.
> 
> Make grep pattern more specific to catch only relevant messages.
> 
> Signed-off-by: Tahsin Erdogan <tahsin@google.com>

The problem is this is a "generic" test, so it will be run on file
systems other than just ext[234].  So making the regexp's specific to
just ext[234] is probably going to be something acceptable for
xfstests upstream.

(For context, the problem was that there were some kernel messages
coming fom an i2c device driver that happened to be spit out while
generic/310 was running, this was causing a false test failure.)

Alternate possible fixes:

(1) we could make an ext4 version of this test, and then make
generic/310 not run for ext4.  In that case we can use the EXT[234]-fs
specific error.

(2) we can fiter out the i2c error in generic/310

(3) we can figure out why the i2c device driver is randomly spitting
out errors and ask the team responsible for that driver to fix _that_
bug

(4) we can try to enumerate the file system specific error messages
instead of assuming that any random kernel message that happens to
contain the string "error" automatically means that there is a file
system problem.

We should probably do (3) no matter what, and arguably generic/310 is
a badly written test and if there is some way we can do (4), that
would be desirable.  As a fall back, we could do (2), and see if that
is acceptable for xfstests upstream.

Cheers,

						- Ted

  reply	other threads:[~2015-11-12 16:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-12  0:36 [PATCH] generic/310: make ext[2-4] error patterns more specific Tahsin Erdogan
2015-11-12 16:15 ` Theodore Ts'o [this message]
2015-11-12 20:28   ` Dave Chinner

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=20151112161550.GA3431@thunk.org \
    --to=tytso@mit.edu \
    --cc=fstests@vger.kernel.org \
    --cc=tahsin@google.com \
    --cc=zhaohongjiang@huawei.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.