Whamcloud - gitweb
LU-7191 test: sanity 27z failed on DNE with ZFS 05/16605/2
authorLai Siyao <lai.siyao@intel.com>
Wed, 23 Sep 2015 06:35:55 +0000 (14:35 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 2 Oct 2015 04:15:01 +0000 (04:15 +0000)
Because ZFS osd always use LPU64 as OST object name, sanity 27z
function check_seq_oid() should follow this semantic to check
obj, otherwise it will not find OST obj.

Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Change-Id: I28f9a2db291f89c16bd142886c195da64c6817bb
Reviewed-on: http://review.whamcloud.com/16605
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/tests/sanity.sh

index 63a3c4e..31db4fe 100644 (file)
@@ -1844,7 +1844,7 @@ check_seq_oid()
                log "want: stripe:$stripe_nr ost:$obdidx oid:$oid/$hex seq:$seq"
 
                seq=$(echo $seq | sed -e "s/^0x//g")
-               if [ $seq == 0 ]; then
+               if [ $seq == 0 ] || [ $(facet_fstype ost$ost) == zfs ]; then
                        oid_hex=$(echo $oid)
                else
                        oid_hex=$(echo $hex | sed -e "s/^0x//g")