From: Dave Chinner <david@fromorbit.com>
To: Josef Bacik <jbacik@fusionio.com>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCH] xfstests: 311: fsck the dmflakey device instead of the real device
Date: Wed, 15 May 2013 07:49:08 +1000 [thread overview]
Message-ID: <20130514214908.GL29466@dastard> (raw)
In-Reply-To: <1368563722-23452-1-git-send-email-jbacik@fusionio.com>
On Tue, May 14, 2013 at 04:35:22PM -0400, Josef Bacik wrote:
> Dave pointed out that xfs was having issues with 311 because of caching issues.
> He suggested that I fsck the dm-flakey device to make sure we don't have this
> problem. This is the easiest way I could think to accomplish this, please let
> me know if this is a bad idea. Thanks,
>
> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
> ---
> tests/generic/311 | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/tests/generic/311 b/tests/generic/311
> index 2b3b569..f11119b 100644
> --- a/tests/generic/311
> +++ b/tests/generic/311
> @@ -125,7 +125,10 @@ _run_test()
>
> #Unmount and fsck to make sure we got a valid fs after replay
> _unmount_flakey
> + tmp=$SCRATCH_DEV
> + SCRATCH_DEV=$FLAKEY_DEV
> _check_scratch_fs
> + SCRATCH_DEV=$tmp
> [ $? -ne 0 ] && _fatal "fsck failed"
I think this can be done with a pretty simple change to
_check_scratch_fs. i.e. pass the device to be checked in as a
parameter, and if the parameter is not set, have _check_scratch_fs
default to using $SCRATCH_DEV. It's a one-line change to 311, and
about 10 lines of (simple) change to _check_scratch_fs....
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
prev parent reply other threads:[~2013-05-14 21:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-14 20:35 [PATCH] xfstests: 311: fsck the dmflakey device instead of the real device Josef Bacik
2013-05-14 21:49 ` Dave Chinner [this message]
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=20130514214908.GL29466@dastard \
--to=david@fromorbit.com \
--cc=jbacik@fusionio.com \
--cc=xfs@oss.sgi.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.