Lines Matching +full:2 +full:c400000
107 # 2nd parameter is the filesystem - fat ext4 etc
111 if [ "$2" = "ext4" ]; then
126 mkfs -t "$2" $MKFS_OPTION "$1" &> /dev/null
127 if [ $? -ne 0 -a "$2" = "fat" ]; then
139 # 2nd parameter is file system type - fat/ext4
151 case "$2" in
166 echo "Unhandled filesystem $2. Exiting!"
218 # Test Case 2 - size of small file
256 # Test Case 7a - One from the last 1MB chunk of 2GB
259 # Test Case 7b - One from the last 1MB chunk of 2GB
264 # Test Case 8a - One from the start 1MB chunk from 2GB
267 # Test Case 8b - One from the start 1MB chunk from 2GB
272 # Test Case 9a - One 1MB chunk crossing the 2GB boundary
275 # Test Case 9b - One 1MB chunk crossing the 2GB boundary
280 # Test Case 10 - 2MB chunk from the last 1MB of big file
307 ${PREFIX}${WRITE} host${SUFFIX} $addr ${FPATH}./${FILE_WRITE}2 \$filesize
309 ${PREFIX}load host${SUFFIX} $addr ${FPATH}./${FILE_WRITE}2
314 ${PREFIX}load host${SUFFIX} $addr ${FPATH}${FILE_WRITE}2
325 # 2nd argument is the file where we generate the md5s of the files
337 # Note that we work only on the start 1MB, couple MBs in the 2GB range
343 sudo dd if=/dev/urandom of="${GB2p5}" bs=1M count=2 seek=2047 \
361 dd if="${MB1}" bs=1M skip=0 count=1 2> /dev/null | md5sum > "$2"
366 2> /dev/null | md5sum >> "$2"
370 2> /dev/null | md5sum >> "$2"
372 # One from the last 1MB chunk of 2GB
374 2> /dev/null | md5sum >> "$2"
376 # One from the start 1MB chunk from 2GB
378 2> /dev/null | md5sum >> "$2"
380 # One 1MB chunk crossing the 2GB boundary
381 dd if="${GB2p5}" bs=512K skip=4095 count=2 \
382 2> /dev/null | md5sum >> "$2"
403 # 2nd parameter is the file we grep, for that string
413 md5_src=`grep -A2 "$1" "$2" | grep "md5 for" | tr -d '\r'`
419 # the 2nd field is the actual md5
430 # 2nd parameter is the name of the file containing the md5 expected
450 egrep -A3 "Test Case 2 " "$1" | grep -q "filesize=100000"
454 egrep -A3 "Test Case 3 " "$1" | grep -q "filesize=9c400000"
460 check_md5 "Test Case 4b " "$1" "$2" 1 "TC4: load from $3"
465 check_md5 "Test Case 5b " "$1" "$2" 2 "TC5: load of 1st MB from $4"
470 check_md5 "Test Case 6b " "$1" "$2" 3 "TC6: load of last MB from $4"
472 # Check last 1mb chunk of 2gb from 2.5GB file
474 pass_fail "TC7: load of last 1mb chunk of 2GB from $4 size"
475 check_md5 "Test Case 7b " "$1" "$2" 4 \
476 "TC7: load of last 1mb chunk of 2GB from $4"
478 # Check first 1mb chunk after 2gb from 2.5GB file
480 pass_fail "TC8: load 1st MB chunk after 2GB from $4 size"
481 check_md5 "Test Case 8b " "$1" "$2" 5 \
482 "TC8: load 1st MB chunk after 2GB from $4"
484 # Check 1mb chunk crossing the 2gb boundary from 2.5GB file
486 pass_fail "TC9: load 1MB chunk crossing 2GB boundary from $4 size"
487 check_md5 "Test Case 9b " "$1" "$2" 6 \
488 "TC9: load 1MB chunk crossing 2GB boundary from $4"
490 # Check 2mb chunk from the last 1MB of 2.5GB file loads 1MB
492 pass_fail "TC10: load 2MB from the last 1MB of $4 loads 1MB"
497 check_md5 "Test Case 11b " "$1" "$2" 1 \
507 check_md5 "Test Case 13b " "$1" "$2" 1 \
509 check_md5 "Test Case 13c " "$1" "$2" 1 \
524 > ${OUT_FILE} 2>&1
576 > ${OUT_FILE} 2>&1