* [PATCH v2] xfstests: _filter_mkfs should consume input from stdin for non-xfs fs
@ 2013-11-12 7:59 Eryu Guan
2013-11-12 22:08 ` Dave Chinner
2013-11-13 3:34 ` Rich Johnston
0 siblings, 2 replies; 3+ messages in thread
From: Eryu Guan @ 2013-11-12 7:59 UTC (permalink / raw)
To: xfs; +Cc: Eryu Guan
_filter_mkfs is a filter so that it should read from stdin first
before printing anything out. Otherwise the command prior to the
pipeline may get EPIPE.
I saw this when testing extN with generic/204, _scratch_mkfs_sized was
unable to create fs because of EPIPE, then _scratch_mount failed.
generic/204 12s ... [failed, exit status 1] - output mismatch (see /root/xfstests/results//generic/204.out.bad)
--- tests/generic/204.out 2013-11-01 16:47:56.728591856 +0800
+++ /root/xfstests/results//generic/204.out.bad 2013-11-01 22:52:53.207828779 +0800
@@ -1,2 +1,7 @@
QA output created by 204
-*** done
+mount: wrong fs type, bad option, bad superblock on /dev/sda6,
+ missing codepage or helper program, or other error
+ In some cases useful info is found in syslog - try
+ dmesg | tail or so
+
Signed-off-by: Eryu Guan <eguan@redhat.com>
---
v2: just pipe stdin to /dev/null for non-xfs fs as Dave suggested.
common/filter | 1 +
1 file changed, 1 insertion(+)
diff --git a/common/filter b/common/filter
index e37ce69..c872a27 100644
--- a/common/filter
+++ b/common/filter
@@ -138,6 +138,7 @@ _filter_mkfs()
xfs)
;;
*)
+ cat - >/dev/null
perl -e 'print STDERR "dbsize=4096\nisize=256\n"'
return ;;
esac
--
1.8.3.1
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH v2] xfstests: _filter_mkfs should consume input from stdin for non-xfs fs
2013-11-12 7:59 [PATCH v2] xfstests: _filter_mkfs should consume input from stdin for non-xfs fs Eryu Guan
@ 2013-11-12 22:08 ` Dave Chinner
2013-11-13 3:34 ` Rich Johnston
1 sibling, 0 replies; 3+ messages in thread
From: Dave Chinner @ 2013-11-12 22:08 UTC (permalink / raw)
To: Eryu Guan; +Cc: xfs
On Tue, Nov 12, 2013 at 03:59:18PM +0800, Eryu Guan wrote:
> _filter_mkfs is a filter so that it should read from stdin first
> before printing anything out. Otherwise the command prior to the
> pipeline may get EPIPE.
>
> I saw this when testing extN with generic/204, _scratch_mkfs_sized was
> unable to create fs because of EPIPE, then _scratch_mount failed.
>
> generic/204 12s ... [failed, exit status 1] - output mismatch (see /root/xfstests/results//generic/204.out.bad)
> --- tests/generic/204.out 2013-11-01 16:47:56.728591856 +0800
> +++ /root/xfstests/results//generic/204.out.bad 2013-11-01 22:52:53.207828779 +0800
> @@ -1,2 +1,7 @@
> QA output created by 204
> -*** done
> +mount: wrong fs type, bad option, bad superblock on /dev/sda6,
> + missing codepage or helper program, or other error
> + In some cases useful info is found in syslog - try
> + dmesg | tail or so
> +
>
> Signed-off-by: Eryu Guan <eguan@redhat.com>
> ---
> v2: just pipe stdin to /dev/null for non-xfs fs as Dave suggested.
>
> common/filter | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/common/filter b/common/filter
> index e37ce69..c872a27 100644
> --- a/common/filter
> +++ b/common/filter
> @@ -138,6 +138,7 @@ _filter_mkfs()
> xfs)
> ;;
> *)
> + cat - >/dev/null
> perl -e 'print STDERR "dbsize=4096\nisize=256\n"'
> return ;;
> esac
Looks good.
Reviewed-by: Dave Chinner <dchinner@redhat.com>
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] xfstests: _filter_mkfs should consume input from stdin for non-xfs fs
2013-11-12 7:59 [PATCH v2] xfstests: _filter_mkfs should consume input from stdin for non-xfs fs Eryu Guan
2013-11-12 22:08 ` Dave Chinner
@ 2013-11-13 3:34 ` Rich Johnston
1 sibling, 0 replies; 3+ messages in thread
From: Rich Johnston @ 2013-11-13 3:34 UTC (permalink / raw)
To: Eryu Guan, xfs
This has been committed.
Thanks
--Rich
commit 9a01da5f6bc2a7518458e5d781929af85d8878e2
Author: Eryu Guan <eguan@redhat.com>
Date: Tue Nov 12 07:59:18 2013 +0000
xfstests: _filter_mkfs should consume input from stdin for non-xfs fs
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-11-13 3:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-12 7:59 [PATCH v2] xfstests: _filter_mkfs should consume input from stdin for non-xfs fs Eryu Guan
2013-11-12 22:08 ` Dave Chinner
2013-11-13 3:34 ` Rich Johnston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox