+# Work out whether any split dumps we saw had all their parts
+for dump in $SPLIT_DUMPS;do
+ report ""
+ numparts=0
+ max=0
+ max_known=0
+ missing=0
+ # figure out
+ for part in `cat $TEMP/$dump.parts`;do
+ cur="`echo $part | cut -d/ -f1`"
+ max="`echo $part | cut -d/ -f2`"
+ if [ $max != "UNKNOWN" ]; then
+ numparts=$max
+ max_known=1
+ break;
+ fi
+ if [ $cur -gt $numparts ]; then
+ numparts=$cur
+ fi
+ done
+ report "Split dump $dump should have $numparts total pieces"
+ if [ $max_known != 1 ]; then
+ report "NOTE: Header field for total pieces was UNKNOWN, $numparts is best guess"
+ fi
+ part=1
+ while [ $part -lt $numparts ];do
+ part=`expr $part + 1`
+ if [ X"`grep \"^$part/\" $TEMP/$dump.parts`" = X"" ];then
+ report "Spanning chunk part $part is missing!"
+ missing=`expr $missing + 1`
+ fi
+ done
+ if [ $missing = 0 ];then
+ report "All parts found"
+ fi
+ rm -f $TEMP/$dump.parts
+done
+