* xfsqa 166 failure
@ 2008-05-01 20:50 Christoph Hellwig
2008-05-01 22:42 ` David Chinner
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2008-05-01 20:50 UTC (permalink / raw)
To: xfs
Looks like the awk on my system (mawk-1.3.3-11 from Debian unstable) doesn't
like the regex used in there. I guess it's some kind of GNU awk
extension:
166 [ 2583.856446] XFS mounting filesystem hdd
[ 2583.871549] Ending clean XFS mount for filesystem: hdd
- output mismatch (see 166.out.bad)
2,6c2,3
< 0: [AA..BB] XX..YY AG (AA..BB) RIGHT GOOD
< 1: [AA..BB] XX..YY AG (AA..BB) RIGHT GOOD
< 2: [AA..BB] XX..YY AG (AA..BB) RIGHT GOOD
< 3: [AA..BB] XX..YY AG (AA..BB) RIGHT GOOD
< 4: [AA..BB] XX..YY AG (AA..BB) RIGHT GOOD
---
> awk: line 9: regular expression compile failed (missing operand)
* is the extent unwritten? *
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: xfsqa 166 failure
2008-05-01 20:50 xfsqa 166 failure Christoph Hellwig
@ 2008-05-01 22:42 ` David Chinner
2008-05-02 6:04 ` Christoph Hellwig
0 siblings, 1 reply; 3+ messages in thread
From: David Chinner @ 2008-05-01 22:42 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: xfs
On Thu, May 01, 2008 at 10:50:04PM +0200, Christoph Hellwig wrote:
> Looks like the awk on my system (mawk-1.3.3-11 from Debian unstable) doesn't
> like the regex used in there. I guess it's some kind of GNU awk
> extension:
>
> 166 [ 2583.856446] XFS mounting filesystem hdd
> [ 2583.871549] Ending clean XFS mount for filesystem: hdd
> - output mismatch (see 166.out.bad)
> 2,6c2,3
> < 0: [AA..BB] XX..YY AG (AA..BB) RIGHT GOOD
> < 1: [AA..BB] XX..YY AG (AA..BB) RIGHT GOOD
> < 2: [AA..BB] XX..YY AG (AA..BB) RIGHT GOOD
> < 3: [AA..BB] XX..YY AG (AA..BB) RIGHT GOOD
> < 4: [AA..BB] XX..YY AG (AA..BB) RIGHT GOOD
> ---
> > awk: line 9: regular expression compile failed (missing operand)
> * is the extent unwritten? *
gawk supports C comment syntax inside procedure blocks and doesn't
interpret them as regexes. I think the standard comment syntax
is supposed to be like bash - use "#". Of course, the gawk man
page doesn't define comment syntax at all, but mawk does.
Does the patch below fix it?
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
---
xfstests/166 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: xfs-cmds/xfstests/166
===================================================================
--- xfs-cmds.orig/xfstests/166 2008-04-28 13:54:14.000000000 +1000
+++ xfs-cmds/xfstests/166 2008-05-02 08:39:46.746511614 +1000
@@ -40,7 +40,7 @@ _filter_blocks()
unwritten2 = ((1048576/512) / 2) - 2 * written_size
}
- /* is the extent unwritten? */
+ # is the extent unwritten?
unwritten_ext = 0;
if ($7 >= 10000)
unwritten_ext = 1;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: xfsqa 166 failure
2008-05-01 22:42 ` David Chinner
@ 2008-05-02 6:04 ` Christoph Hellwig
0 siblings, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2008-05-02 6:04 UTC (permalink / raw)
To: David Chinner; +Cc: Christoph Hellwig, xfs
On Fri, May 02, 2008 at 08:42:37AM +1000, David Chinner wrote:
> gawk supports C comment syntax inside procedure blocks and doesn't
> interpret them as regexes. I think the standard comment syntax
> is supposed to be like bash - use "#". Of course, the gawk man
> page doesn't define comment syntax at all, but mawk does.
>
> Does the patch below fix it?
Yes, this fixes it.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-02 6:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-01 20:50 xfsqa 166 failure Christoph Hellwig
2008-05-01 22:42 ` David Chinner
2008-05-02 6:04 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox