let people know that they probably have an old XFS if this test fails
authorTim Shimmin <tes@sgi.com>
Mon, 10 Jul 2006 06:08:23 +0000 (06:08 +0000)
committerTim Shimmin <tes@sgi.com>
Mon, 10 Jul 2006 06:08:23 +0000 (06:08 +0000)
Merge of master-melb:xfs-cmds:26498a by kenmcd.

  let people know that they probably have an old XFS if this test fails

121
121.out

diff --git a/121 b/121
index ba824696355b184f314d018e87ea6d50d7972b5e..9361025a05d50b33aff91faf0172c0a9abdf7833 100755 (executable)
--- a/121
+++ b/121
@@ -82,7 +82,12 @@ echo "logprint after going down..."
 _print_logstate
 
 echo "logprint to check for CLEAR_AGI_BUCKET..."
-_scratch_xfs_logprint -t | grep CLEAR
+if _scratch_xfs_logprint -t | tee -a $seq.full | grep CLEAR; then
+       echo 'CLEAR_AGI_BUCKET transactions found!!'
+       echo 'Are you running with an old xfs kernel - where the bug still exists?'
+else
+       echo 'No CLEAR_AGI_BUCKET found in transactions - great - test passed :)'
+fi
 
 # success, all done
 status=0
diff --git a/121.out b/121.out
index fcc7209fe11e7bf16a5ad76a7eb9d32b32f3f06b..ae07e92add3b92e01e6c824618b8050ae862e539 100644 (file)
--- a/121.out
+++ b/121.out
@@ -12,3 +12,4 @@ unmount
 logprint after going down...
 dirty log
 logprint to check for CLEAR_AGI_BUCKET...
+No CLEAR_AGI_BUCKET found in transactions - great - test passed :)