]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
filter out IRIX difference for repair where it complains about
authorTim Shimmin <tes@sgi.com>
Thu, 2 Jun 2005 06:04:19 +0000 (06:04 +0000)
committerTim Shimmin <tes@sgi.com>
Thu, 2 Jun 2005 06:04:19 +0000 (06:04 +0000)
bogus userids/groupids since they were set to -1.
This does not have such a limit on linux.
Merge of master-melb:xfs-cmds:22777a by kenmcd.

  filter out IRIX difference for repair where it complains about
  bogus userids/groupids since they were set to -1.
  This does not have such a limit on linux.

033

diff --git a/033 b/033
index e3386709b63de2abbe280dd4231cbf33df0fc8d6..72c302ebf1b5938494804049a47a350bc4bb7f5e 100755 (executable)
--- a/033
+++ b/033
@@ -74,6 +74,19 @@ _check_root_inos()
        _check_repair $1 "inode $rsumino"
 }
 
+#
+# pv#909621
+# IRIX checks for valid user and group ids as we have a 
+# limit of MAXID
+# As it is unsigned on Linux, this test is not done
+# (i.e. -1 is a valid id on Linux but not on IRIX)
+# So we make the output the same for both OS's.
+#
+_filter_bad_ids()
+{
+       egrep -v 'bad user id 0xffffffff|bad group id 0xffffffff'
+}
+
 # real QA test starts here
 _supported_fs xfs
 _supported_os IRIX Linux
@@ -100,7 +113,7 @@ umount $SCRATCH_DEV
 
 # rootino, rbmino, and rsumino are now set (lets blow em away!)
 _check_root_inos 0
-_check_root_inos -1
+_check_root_inos -1 | _filter_bad_ids
 
 # success, all done
 status=0