Whamcloud - gitweb
LU-9522 test: sanity 27z fix update local variable 63/27163/3
authorJames Nunez <james.a.nunez@intel.com>
Wed, 17 May 2017 15:55:23 +0000 (09:55 -0600)
committerAndreas Dilger <andreas.dilger@intel.com>
Fri, 19 May 2017 17:12:07 +0000 (17:12 +0000)
sanity test_27z is failing for servers running ZFS. The
problem is that filter_fid is not being updated for each
stripe of the file being reviewed in check_seq_oid().

For each stripe, the variable that holds the filter_fid,
ff, needs to be reinitialized.

Test-Parameters: trivial testgroup=review-zfs-part-1

Signed-off-by: James Nunez <james.a.nunez@intel.com>
Change-Id: I550720a0a2bad22c4ffa98ca84b5f085eb220051
Reviewed-on: https://review.whamcloud.com/27163
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/sanity.sh

index fb4539d..83f8305 100755 (executable)
@@ -1881,7 +1881,7 @@ check_seq_oid()
                fi
                local obj_file="O/$seq/d$((oid %32))/$oid_hex"
 
                fi
                local obj_file="O/$seq/d$((oid %32))/$oid_hex"
 
-               local ff
+               local ff=""
                #
                # Don't unmount/remount the OSTs if we don't need to do that.
                # LU-2577 changes filter_fid to be smaller, so debugfs needs
                #
                # Don't unmount/remount the OSTs if we don't need to do that.
                # LU-2577 changes filter_fid to be smaller, so debugfs needs