Whamcloud - gitweb
LU-8998 pfl: enhance PFID EA for PFL
[fs/lustre-release.git] / lustre / tests / sanity.sh
index a3b3fae..33268f1 100755 (executable)
@@ -1909,6 +1909,9 @@ check_seq_oid()
                local ff_pstripe
                if echo $ff_parent | grep -q 'stripe='; then
                        ff_pstripe=$(echo $ff_parent | sed -e 's/.*stripe=//')
+                       if echo $ff_pstripe | grep -q 'stripe_size='; then
+                               ff_pstripe=$(echo $ff_pstripe | cut -d' ' -f1)
+                       fi
                else
                        #
                        # $LL_DECODE_FILTER_FID does not print "stripe="; look
@@ -1919,6 +1922,15 @@ check_seq_oid()
                                sed -e 's/\]//')
                fi
 
+               if echo $ff_parent | grep -q 'stripe_count='; then
+                       local ff_scnt=$(echo $ff_parent |
+                                       sed -e 's/.*stripe_count=//' |
+                                       cut -d' ' -f1)
+
+                       [ $lmm_count -eq $ff_scnt ] ||
+                               error "FF stripe count $lmm_count != $ff_scnt"
+               fi
+
                 # compare lmm_seq and filter_fid->ff_parent.f_seq
                 [ $ff_pseq = $lmm_seq ] ||
                         error "FF parent SEQ $ff_pseq != $lmm_seq"