Skip to contentSkip to conversation

xfstests: small fixes.

PATCH In review Dave Chinner 2 participants 5 messages Dec 6, 2011

lore
Share & tools
lore
#1 lore raw

PATCH 1/2 xfstests: test 110 sometimes fails to unmount scratch dev

In reply to Dave Chinner

From: Dave Chinner <[email protected]>

It runs a bunch of rm processes inteh background, tehn immediately calls _check_scratch_fs without waiting for them to complete, hence the unmount can fail with abusy filesystem error.

---
 110 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
110 +1 -0
index cf5f663..aad5835 100755
@@ -79,6 +79,7 @@ do
     rm $SCRATCH_MNT/test/${STR1}${STR2}${STR3}${I} &
     let I=$I+1
 done
+wait
 
 _check_scratch_fs
 
Signature · 6 lines
1.7.5.4

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#3 lore raw

PATCH 2/2 xfstests: ln failure output has changed again

From: Dave Chinner <[email protected]>

Recent coreutils packages have changed the failure output of ln(1) (again!) to be more verbose, breaking the filter in test 103:

-ln: creating symbolic link SCRATCH_MNT/nosymlink/target' to SCRATCH_MNT/nosymlink/source': Operation not permitted +ln: failed to create symbolic link SCRATCH_MNT/nosymlink/target' to SCRATCH_MNT/nosymlink/source': Operation not permitted

Fix it.

---
 103 |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
103 +2 -1
index 1c9994e..e383991 100755
@@ -57,7 +57,8 @@ _create_scratch()
 _filter_ln()
 {
     sed -e "s,SCRATCH_MNT/nosymlink/target - Operation not permitted,ln: creating symbolic link \`SCRATCH_MNT/nosymlink/target\' to \`SCRATCH_MNT/nosymlink/source\': Operation not permitted,g" \
-        -e "/SCRATCH_MNT.*to.*SCRATCH_MNT/! s,: Operation not permitted, to \`SCRATCH_MNT/nosymlink/source\': Operation not permitted,g"
+        -e "/SCRATCH_MNT.*to.*SCRATCH_MNT/! s,: Operation not permitted, to \`SCRATCH_MNT/nosymlink/source\': Operation not permitted,g" \
+	-e "s,failed to create,creating,"
 }
 
 _filter_noymlinks_flag()
Signature · 6 lines
1.7.5.4

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] xfstests: test 110 sometimes fails to unmount scratch dev

In reply to Dave Chinner
Quoted 7 lines · Dave Chinner

From: Dave Chinner <[email protected]>

It runs a bunch of rm processes inteh background, tehn immediately calls _check_scratch_fs without waiting for them to complete, hence the unmount can fail with abusy filesystem error.

Looks good,

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

Reviewed-by on v1 2/2
#4 lore raw

Re: [PATCH 2/2] xfstests: ln failure output has changed again

In reply to Dave Chinner
Quoted 4 lines · Dave Chinner

From: Dave Chinner <[email protected]>

Recent coreutils packages have changed the failure output of ln(1) (again!) to be more verbose, breaking the filter in test 103:

Great..

Quoted 5 lines
(quoted diff) +1 -1
-ln: creating symbolic link `SCRATCH_MNT/nosymlink/target' to `SCRATCH_MNT/nosymlink/source': Operation not permitted
+ln: failed to create symbolic link `SCRATCH_MNT/nosymlink/target' to `SCRATCH_MNT/nosymlink/source': Operation not permitted

Fix it.

Looks good,

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs