* [PATCH] 030: fix for new xfs_repair versions
@ 2012-03-31 23:28 Christoph Hellwig
2012-04-02 14:35 ` Mark Tinguely
2012-04-10 18:56 ` Mark Tinguely
0 siblings, 2 replies; 6+ messages in thread
From: Christoph Hellwig @ 2012-03-31 23:28 UTC (permalink / raw)
To: xfs
Given that we now drop invalid unlinked inode lists there is no message
to capture. Also add a sed expression to avoid failures on old repair
versions.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Index: xfstests-dev/030
===================================================================
--- xfstests-dev.orig/030 2012-03-31 23:15:11.000000000 +0000
+++ xfstests-dev/030 2012-03-31 23:18:31.000000000 +0000
@@ -55,7 +55,8 @@ _check_ag()
for structure in 'sb 0' 'agf 0' 'agi 0' 'agfl 0'
do
echo "Corrupting $structure - setting bits to $1"
- _check_repair $1 "$structure"
+ _check_repair $1 "$structure" |
+ sed -e 's/error following ag 0 unlinked list//'
done
}
@@ -97,8 +98,7 @@ src/devzero -v -1 -n "$clear" $SCRATCH_D
# now kick off the real repair test...
#
-_scratch_mkfs_xfs $DSIZE | _filter_mkfs | \
- sed -e 's/error following ag 0 unlinked list//' 2>$tmp.mkfs
+_scratch_mkfs_xfs $DSIZE | _filter_mkfs 2>$tmp.mkfs
. $tmp.mkfs
_check_ag 0
_check_ag -1
Index: xfstests-dev/030.out.linux
===================================================================
--- xfstests-dev.orig/030.out.linux 2012-03-31 23:19:09.000000000 +0000
+++ xfstests-dev/030.out.linux 2012-03-31 23:19:17.000000000 +0000
@@ -85,7 +85,6 @@ bad agbno AGBNO for inobt root, agno 0
root inode chunk not found
Phase 3 - for each AG...
- scan and clear agi unlinked lists...
-error following ag 0 unlinked list
- process known inodes and perform inode discovery...
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] 030: fix for new xfs_repair versions
2012-03-31 23:28 [PATCH] 030: fix for new xfs_repair versions Christoph Hellwig
@ 2012-04-02 14:35 ` Mark Tinguely
2012-04-10 18:56 ` Mark Tinguely
1 sibling, 0 replies; 6+ messages in thread
From: Mark Tinguely @ 2012-04-02 14:35 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: xfs
On 03/31/12 18:28, Christoph Hellwig wrote:
> Given that we now drop invalid unlinked inode lists there is no message
> to capture. Also add a sed expression to avoid failures on old repair
> versions.
>
> Signed-off-by: Christoph Hellwig<hch@lst.de>
>
> Index: xfstests-dev/030
> ===================================================================
> --- xfstests-dev.orig/030 2012-03-31 23:15:11.000000000 +0000
> +++ xfstests-dev/030 2012-03-31 23:18:31.000000000 +0000
> @@ -55,7 +55,8 @@ _check_ag()
> for structure in 'sb 0' 'agf 0' 'agi 0' 'agfl 0'
> do
> echo "Corrupting $structure - setting bits to $1"
> - _check_repair $1 "$structure"
> + _check_repair $1 "$structure" |
> + sed -e 's/error following ag 0 unlinked list//'
> done
> }
>
> @@ -97,8 +98,7 @@ src/devzero -v -1 -n "$clear" $SCRATCH_D
>
> # now kick off the real repair test...
> #
> -_scratch_mkfs_xfs $DSIZE | _filter_mkfs | \
> - sed -e 's/error following ag 0 unlinked list//' 2>$tmp.mkfs
> +_scratch_mkfs_xfs $DSIZE | _filter_mkfs 2>$tmp.mkfs
> . $tmp.mkfs
> _check_ag 0
> _check_ag -1
> Index: xfstests-dev/030.out.linux
> ===================================================================
> --- xfstests-dev.orig/030.out.linux 2012-03-31 23:19:09.000000000 +0000
> +++ xfstests-dev/030.out.linux 2012-03-31 23:19:17.000000000 +0000
> @@ -85,7 +85,6 @@ bad agbno AGBNO for inobt root, agno 0
> root inode chunk not found
> Phase 3 - for each AG...
> - scan and clear agi unlinked lists...
> -error following ag 0 unlinked list
> - process known inodes and perform inode discovery...
> - process newly discovered inodes...
> Phase 4 - check for duplicate blocks...
>
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
The sed left a blank line where where the "error following ag 0 unlinked
list" would have been in an 3.0.x kernel run of the test.
Maybe add another "sed -e '/^$/d'" to the filter?
--Mark Tinguely <tinguely@sgi.com>
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] 030: fix for new xfs_repair versions
2012-03-31 23:28 [PATCH] 030: fix for new xfs_repair versions Christoph Hellwig
2012-04-02 14:35 ` Mark Tinguely
@ 2012-04-10 18:56 ` Mark Tinguely
2012-05-23 13:12 ` Mark Tinguely
1 sibling, 1 reply; 6+ messages in thread
From: Mark Tinguely @ 2012-04-10 18:56 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: xfs
On 03/31/12 18:28, Christoph Hellwig wrote:
> Given that we now drop invalid unlinked inode lists there is no message
> to capture. Also add a sed expression to avoid failures on old repair
> versions.
>
> Signed-off-by: Christoph Hellwig<hch@lst.de>
>
This is something that worked on an older OS:
Signed-off-by: Mark Tinguely <tinguely@sgi.com>
---
030 | 3 ++-
030.out.linux | 1 -
2 files changed, 2 insertions(+), 2 deletions(-)
Index: b/030
===================================================================
--- a/030
+++ b/030
@@ -55,7 +55,8 @@ _check_ag()
for structure in 'sb 0' 'agf 0' 'agi 0' 'agfl 0'
do
echo "Corrupting $structure - setting bits to $1"
- _check_repair $1 "$structure"
+ _check_repair $1 "$structure" |
+ sed -e '/^error following ag 0 unlinked list$/d'
done
}
Index: b/030.out.linux
===================================================================
--- a/030.out.linux
+++ b/030.out.linux
@@ -85,7 +85,6 @@ bad agbno AGBNO for inobt root, agno 0
root inode chunk not found
Phase 3 - for each AG...
- scan and clear agi unlinked lists...
-error following ag 0 unlinked list
- process known inodes and perform inode discovery...
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] 030: fix for new xfs_repair versions
2012-04-10 18:56 ` Mark Tinguely
@ 2012-05-23 13:12 ` Mark Tinguely
2012-05-23 13:55 ` Christoph Hellwig
0 siblings, 1 reply; 6+ messages in thread
From: Mark Tinguely @ 2012-05-23 13:12 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: xfs
On 04/10/12 13:56, Mark Tinguely wrote:
> On 03/31/12 18:28, Christoph Hellwig wrote:
>> Given that we now drop invalid unlinked inode lists there is no message
>> to capture. Also add a sed expression to avoid failures on old repair
>> versions.
>>
>> Signed-off-by: Christoph Hellwig<hch@lst.de>
>>
>
>
> This is something that worked on an older OS:
>
> Signed-off-by: Mark Tinguely <tinguely@sgi.com>
> ---
> 030 | 3 ++-
> 030.out.linux | 1 -
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> Index: b/030
> ===================================================================
> --- a/030
> +++ b/030
> @@ -55,7 +55,8 @@ _check_ag()
> for structure in 'sb 0' 'agf 0' 'agi 0' 'agfl 0'
> do
> echo "Corrupting $structure - setting bits to $1"
> - _check_repair $1 "$structure"
> + _check_repair $1 "$structure" |
> + sed -e '/^error following ag 0 unlinked list$/d'
> done
> }
>
> Index: b/030.out.linux
> ===================================================================
> --- a/030.out.linux
> +++ b/030.out.linux
> @@ -85,7 +85,6 @@ bad agbno AGBNO for inobt root, agno 0
> root inode chunk not found
> Phase 3 - for each AG...
> - scan and clear agi unlinked lists...
> -error following ag 0 unlinked list
> - process known inodes and perform inode discovery...
> - process newly discovered inodes...
> Phase 4 - check for duplicate blocks...
>
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
ping.
People are still listing 030 as broken. We should get this fixed.
--Mark Tinguely
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] 030: fix for new xfs_repair versions
2012-05-23 13:12 ` Mark Tinguely
@ 2012-05-23 13:55 ` Christoph Hellwig
2012-05-23 17:11 ` Eric Sandeen
0 siblings, 1 reply; 6+ messages in thread
From: Christoph Hellwig @ 2012-05-23 13:55 UTC (permalink / raw)
To: Mark Tinguely; +Cc: Christoph Hellwig, xfs
The patch looks fine to me. I'm currently travelling and away from the
box that can push to the kernel.org repository. Who else has access to
it?
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] 030: fix for new xfs_repair versions
2012-05-23 13:55 ` Christoph Hellwig
@ 2012-05-23 17:11 ` Eric Sandeen
0 siblings, 0 replies; 6+ messages in thread
From: Eric Sandeen @ 2012-05-23 17:11 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Mark Tinguely, xfs
On 5/23/12 8:55 AM, Christoph Hellwig wrote:
> The patch looks fine to me. I'm currently travelling and away from the
> box that can push to the kernel.org repository. Who else has access to
> it?
I'll merge it.
-Eric
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-05-23 17:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-31 23:28 [PATCH] 030: fix for new xfs_repair versions Christoph Hellwig
2012-04-02 14:35 ` Mark Tinguely
2012-04-10 18:56 ` Mark Tinguely
2012-05-23 13:12 ` Mark Tinguely
2012-05-23 13:55 ` Christoph Hellwig
2012-05-23 17:11 ` Eric Sandeen
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.